Skip to content

Commit

Permalink
Merge branch 'devel' into CB-4289-te-dataset-change-name-for-export-f…
Browse files Browse the repository at this point in the history
…ile-to-dataset-name
  • Loading branch information
devnaumov committed Jan 18, 2024
2 parents 898b4fb + 80ce154 commit abc44a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webapp/packages/core-authentication/src/usePasswordPolicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export function usePasswordPolicy() {
const passwordPolicyService = useService(PasswordPolicyService);

const ref = useCustomInputValidation<string>(value => {
if (!value) {
return null;
}

const validation = passwordPolicyService.validatePassword(value);
return validation.isValid ? null : validation.errorMessage;
});
Expand Down

0 comments on commit abc44a8

Please sign in to comment.