From 30fee721ee0735bfa98f9d5b7bbad15a9d45cd87 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 input fields coloring added indentations fixing --- ui/src/app/login/controllers/LoginCtrl.js | 8 ++++++++ ui/src/app/views/login.html | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ui/src/app/login/controllers/LoginCtrl.js b/ui/src/app/login/controllers/LoginCtrl.js index f633ef01..45209d23 100755 --- a/ui/src/app/login/controllers/LoginCtrl.js +++ b/ui/src/app/login/controllers/LoginCtrl.js @@ -16,6 +16,14 @@ $scope.unApproved = true; } else if(status.state == 403) { $scope.incorrectCredentials = true; + $scope.user.password = ''; + document.getElementById('user_name') + .style.borderBottomColor = 'red'; + document.getElementById('user_name').style.color = 'red'; + document.getElementById('user_name_label').style.color = 'red'; + document.getElementById('password') + .style.borderBottomColor = 'red'; + document.getElementById('password_label').style.color = 'red'; } }); }; diff --git a/ui/src/app/views/login.html b/ui/src/app/views/login.html index 75cfc8a4..74694fb4 100755 --- a/ui/src/app/views/login.html +++ b/ui/src/app/views/login.html @@ -2,12 +2,12 @@
- - + + - - + +