Skip to content

Commit

Permalink
Fix password_policy fallback handling
Browse files Browse the repository at this point in the history
The defined fallback is only affecting when no core=>capabilities is there.
But that is pretty unlikely while the password_policy entry can be missing often

Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Oct 31, 2022
1 parent 278bc5b commit 0204f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NcPasswordField/NcPasswordField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ import { generateOcsUrl } from '@nextcloud/router'
import { t } from '../../l10n.js'
import logger from '../../utils/logger.js'
const defaultPasswordPolicy = loadState('core', 'capabilities', { passwordPolicy: null }).password_policy
const defaultPasswordPolicy = loadState('core', 'capabilities', { password_policy: null })?.password_policy || null
export default {
name: 'NcPasswordField',
Expand Down

0 comments on commit 0204f6d

Please sign in to comment.