File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 16
16
$scope . unApproved = true ;
17
17
} else if ( status . state == 403 ) {
18
18
$scope . incorrectCredentials = true ;
19
+ $scope . user . password = '' ;
20
+ document . getElementById ( 'user_name' )
21
+ . style . borderBottomColor = 'red' ;
22
+ document . getElementById ( 'user_name' ) . style . color = 'red' ;
23
+ document . getElementById ( 'user_name_label' ) . style . color = 'red' ;
24
+ document . getElementById ( 'password' )
25
+ . style . borderBottomColor = 'red' ;
26
+ document . getElementById ( 'password_label' ) . style . color = 'red' ;
19
27
}
20
28
} ) ;
21
29
} ;
Original file line number Diff line number Diff line change 2
2
< img class ="logo " ng-src ="assets/images/logo.png ">
3
3
< div layout ="column " class ="login-content ">
4
4
< md-input-container class ="input-container ">
5
- < label > User name</ label >
6
- < input type ="text " ng-model ="user.user_name " />
5
+ < label id =" user_name_label " > User name</ label >
6
+ < input type ="text " ng-model ="user.user_name " id =" user_name " />
7
7
</ md-input-container >
8
8
< md-input-container class ="input-container ">
9
- < label > Password</ label >
10
- < input type ="password " ng-model ="user.password " ng-enter ="login() " />
9
+ < label id =" password_label " > Password</ label >
10
+ < input type ="password " ng-model ="user.password " ng-enter ="login() " id =" password " />
11
11
</ md-input-container >
12
12
< md-button class ="md-raised md-primary login-button " ng-click ="login() "> Login</ md-button >
13
13
< div layout ="row ">
You can’t perform that action at this time.
0 commit comments