diff options
author | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-04-05 17:12:14 -0300 |
---|---|---|
committer | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-04-05 17:12:14 -0300 |
commit | bf6ca194d25dbf3fd23df7e58d0da2fa6b74b8d6 (patch) | |
tree | b07d8e59e40400510371d874d59c8ea074ad8c77 /web-ui/src/account_recovery | |
parent | 353014a6bf9c3358a5d44e0411fe08e7f8c621d4 (diff) |
[#934] Set max length for passwords
Diffstat (limited to 'web-ui/src/account_recovery')
-rw-r--r-- | web-ui/src/account_recovery/new_password_form/new_password_form.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web-ui/src/account_recovery/new_password_form/new_password_form.js b/web-ui/src/account_recovery/new_password_form/new_password_form.js index 346c1eb8..5e1e72c9 100644 --- a/web-ui/src/account_recovery/new_password_form/new_password_form.js +++ b/web-ui/src/account_recovery/new_password_form/new_password_form.js @@ -61,7 +61,7 @@ export class NewPasswordForm extends React.Component { validatePassword = (password, confirmPassword) => { const emptyPassword = validator.isEmpty(password); - const validPassword = validator.isLength(password, { min: 8, max: undefined }); + const validPassword = validator.isLength(password, { min: 8, max: 9999 }); const emptyConfirmPassword = validator.isEmpty(confirmPassword); const validConfirmPassword = confirmPassword === password; |