mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Improve login
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user