diff options
Diffstat (limited to 'webapp/utils/utils.jsx')
-rw-r--r-- | webapp/utils/utils.jsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx index f707e2b28..9a4f5c21f 100644 --- a/webapp/utils/utils.jsx +++ b/webapp/utils/utils.jsx @@ -1281,7 +1281,7 @@ export function isValidPassword(password) { } minimumLength = global.window.mm_config.PasswordMinimumLength; - } else if (password.length < Constants.MIN_PASSWORD_LENGTH) { + } else if (password.length < Constants.MIN_PASSWORD_LENGTH || password.length > Constants.MAX_PASSWORD_LENGTH) { error = true; } @@ -1289,9 +1289,10 @@ export function isValidPassword(password) { errorMsg = ( <FormattedMessage id={errorId} - default='Your password must be at least {min} characters.' + default='Your password must contain between {min} and {max} characters.' values={{ - min: minimumLength + min: minimumLength, + max: Constants.MAX_PASSWORD_LENGTH }} /> ); |