This commit is contained in:
@@ -149,9 +149,13 @@ export class AdminComponent implements OnInit {
|
||||
this.name = user.fullName;
|
||||
this.isActive = user.isActive;
|
||||
this.getEvents();
|
||||
} else {
|
||||
confirm('Login unsuccessful. Please check if you provided the correct username and password.');
|
||||
}
|
||||
});
|
||||
}
|
||||
}, (error) => {
|
||||
confirm('Login unsuccessful. Reported problem from server: ' + error.error.message);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -161,7 +165,7 @@ export class AdminComponent implements OnInit {
|
||||
UtilsService.saveSessionInfoToLocalStorage(session.sessionId, session.sessionKey);
|
||||
this.isLoggedIn = true;
|
||||
this.getEvents();
|
||||
confirm('Please talk to Patrick to activate your account. You can\'t use this application before that.')
|
||||
confirm('Please talk to Patrick to activate your account. You can\'t use this application before that.');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user