From d21715d8f1186e80fb55276b09c64f84b92f76f5 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Tue, 7 Apr 2015 09:01:33 -0400 Subject: [PATCH] (fix) right localized string + one for account locked --- UI/WebServerResources/js/Common/SOGoAuthentication.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UI/WebServerResources/js/Common/SOGoAuthentication.js b/UI/WebServerResources/js/Common/SOGoAuthentication.js index 16e3e3dbf..f8cd9e742 100644 --- a/UI/WebServerResources/js/Common/SOGoAuthentication.js +++ b/UI/WebServerResources/js/Common/SOGoAuthentication.js @@ -154,8 +154,11 @@ if (perr == passwordPolicyConfig.PolicyNoError) { msg = l('Wrong username or password.'); } + else if (perr == passwordPolicyConfig.PolicyAccountLocked) { + msg = l('Your account was locked due to too many failed attempts.'); + } else { - msg = l('Login failed due to unhandled error case: ' + perr); + msg = l('Login failed due to unhandled error case: ') + perr; } } else {