Skip to content

Commit

Permalink
fix:reset password to null
Browse files Browse the repository at this point in the history
PR-quality resolved

input fields coloring added

indentations fixing
  • Loading branch information
BLasan committed Mar 29, 2020
1 parent 79dc87b commit 02a015d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions ui/src/app/login/controllers/LoginCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
$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';
}
});
};
Expand Down
8 changes: 4 additions & 4 deletions ui/src/app/views/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<img class="logo" ng-src="assets/images/logo.png">
<div layout="column" class="login-content">
<md-input-container class="input-container">
<label>User name</label>
<input type="text" ng-model="user.user_name" />
<label id="user_name_label">User name</label>
<input type="text" ng-model="user.user_name" id="user_name"/>
</md-input-container>
<md-input-container class="input-container">
<label>Password</label>
<input type="password" ng-model="user.password" ng-enter="login()" />
<label id="password_label">Password</label>
<input type="password" ng-model="user.password" ng-enter="login()" id="password" />
</md-input-container>
<md-button class="md-raised md-primary login-button" ng-click="login()">Login</md-button>
<div layout="row">
Expand Down

0 comments on commit 02a015d

Please sign in to comment.