From 06c2ba9fa9d4c42cc18ddf830976166e213d965b Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 21 Jan 2016 14:34:36 +0100 Subject: [PATCH] Fixup email edit form with password changes --- webadmin/src/views/account.html | 12 +++++------- webadmin/src/views/account.js | 1 + 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/webadmin/src/views/account.html b/webadmin/src/views/account.html index ffe80beac..f41fde805 100644 --- a/webadmin/src/views/account.html +++ b/webadmin/src/views/account.html @@ -68,15 +68,13 @@ -
+
-
- A password is required - The password is too short - The password is too long - Invalid pasword +
+ Password must be 8-30 character with at least one uppercase, one numeric and one special character + Invalid pasword
- +
diff --git a/webadmin/src/views/account.js b/webadmin/src/views/account.js index 9ce7c931d..915f86550 100644 --- a/webadmin/src/views/account.js +++ b/webadmin/src/views/account.js @@ -91,6 +91,7 @@ angular.module('Application').controller('AccountController', ['$scope', '$locat if (error.statusCode === 403) { $scope.emailchange.error.password = true; $scope.emailchange.password = ''; + $scope.emailchange_form.password.$setPristine(); $('#inputEmailChangePassword').focus(); } else { console.error('Unable to change email.', error);