Improve login

This commit is contained in:
Peter Maquiran
2021-07-01 09:52:36 +01:00
parent 9e7a6b0503
commit 60d6e6c53e
3 changed files with 59 additions and 97 deletions
+4
View File
@@ -28,6 +28,10 @@ export class AuthService {
public alertController: AlertController,
) {
if(window.location.pathname != '' && !localStorage.getItem('UserData')) {
this.router.navigate(['/']);
}
this.headers = new HttpHeaders();
if (localStorage.getItem("user") != null) {