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 easily.

Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Nov 2, 2022
1 parent 278bc5b commit d8fc2a8
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
export default {
name: 'NcPasswordField',
Expand Down

0 comments on commit d8fc2a8

Please sign in to comment.