From e3abcb1bfdf51ee6169877d4235ba39c2695be48 Mon Sep 17 00:00:00 2001 From: BLasan Date: Tue, 24 Mar 2020 22:08:41 +0530 Subject: [PATCH] fix:reset password to null PR-quality resolved form validations added --- ui/src/app/login/controllers/LoginCtrl.js | 2 ++ ui/src/app/views/login.html | 33 ++++++++++++++++++----- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/ui/src/app/login/controllers/LoginCtrl.js b/ui/src/app/login/controllers/LoginCtrl.js index f633ef01..20a9725e 100755 --- a/ui/src/app/login/controllers/LoginCtrl.js +++ b/ui/src/app/login/controllers/LoginCtrl.js @@ -16,6 +16,8 @@ $scope.unApproved = true; } else if(status.state == 403) { $scope.incorrectCredentials = true; + $scope.user.password = ''; + $scope.loginForm.password.$setTouched(); } }); }; diff --git a/ui/src/app/views/login.html b/ui/src/app/views/login.html index 75cfc8a4..5e237838 100755 --- a/ui/src/app/views/login.html +++ b/ui/src/app/views/login.html @@ -1,13 +1,33 @@
-