diff --git a/webadmin/src/index.html b/webadmin/src/index.html index fb972a2df..691a9bc73 100644 --- a/webadmin/src/index.html +++ b/webadmin/src/index.html @@ -86,15 +86,13 @@
-
+
-
- A password is required - The password is too short - The password is too long - Incorrect password +
+ Password required + Invalid password
- +
diff --git a/webadmin/src/js/main.js b/webadmin/src/js/main.js index 2c74ca912..b98bdced9 100644 --- a/webadmin/src/js/main.js +++ b/webadmin/src/js/main.js @@ -54,8 +54,9 @@ angular.module('Application').controller('MainController', ['$scope', '$route', Client.update($scope.update.password, function (error) { if (error) { if (error.statusCode === 403) { - $scope.update.error.password = 'Incorrect password'; + $scope.update.error.password = true; $scope.update.password = ''; + $scope.update_form.password.$setPristine(); $('#inputUpdatePassword').focus(); } else { console.error('Unable to update.', error);