File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4141 {{'USERS.FORM.ACTIVE' | translate}}</ mat-slide-toggle >
4242 </ div >
4343 < div class ="row mb-3 ">
44- < mat-slide-toggle [(ngModel)] ="user.globalAdmin " id ="permission " name ="permission ">
44+ < mat-slide-toggle [(ngModel)] ="user.globalAdmin " id ="globalAdmin " name ="globalAdmin ">
4545 {{'USERS.FORM.GLOBAL-ADMIN' | translate}}</ mat-slide-toggle >
4646 </ div >
4747 < div class ="form-group mt-5 clearfix ">
Original file line number Diff line number Diff line change @@ -52,10 +52,10 @@ export class AuthComponent implements OnInit {
5252 this . authService . login ( username , password ) . subscribe (
5353 ( x : any ) => {
5454 console . log ( x ) ;
55- if ( x == 401 ) {
56- this . fail ( ) ;
57- } else {
55+ if ( x . accessToken ) {
5856 this . success ( ) ;
57+ } else {
58+ this . fail ( ) ;
5959 }
6060 } ,
6161 ( err ) => {
You can’t perform that action at this time.
0 commit comments