From c7f26bb1103e75c451eba3b720ac41097c427fbc Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Sun, 16 Apr 2017 17:08:37 -0400 Subject: Update error message when password is too long (#6001) --- webapp/utils/utils.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'webapp/utils/utils.jsx') 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 = ( ); -- cgit v1.2.3-1-g7c22