correction bug pour la page de login
This commit is contained in:
1 parent
5062275a15
commit
aba237c44d
2 files changed
+5
-5
No files matched your search
@@ -42,7 +42,7 @@ export class LoginComponent implements OnInit {
|
||||
} else {
|
||||
this.bs.loginUser(this.loginFG.value).subscribe(
|
||||
data => {
|
||||
this.router.navigateByUrl("/intro");
|
||||
this.router.navigateByUrl("/home");
|
||||
}, err => {
|
||||
this.wrongCredentials = true;
|
||||
});
|
||||
|
||||
@@ -20,7 +20,7 @@ export class BackendService {
|
||||
withCredentials: true
|
||||
};
|
||||
|
||||
return this.http.post<any>(host+"/api/login", {}, options);
|
||||
return this.http.post<any>(host+"/api/configurateur/login", {}, options);
|
||||
}
|
||||
|
||||
isConnected():Observable<any> {
|
||||
@@ -31,7 +31,7 @@ export class BackendService {
|
||||
}),
|
||||
withCredentials: true
|
||||
};
|
||||
return this.http.get<any>(host+"/api/userConnected", options);
|
||||
return this.http.get<any>(host+"/api/configurateur/userConnected", options);
|
||||
}
|
||||
|
||||
logoutUser():Observable<any> {
|
||||
@@ -42,7 +42,7 @@ export class BackendService {
|
||||
}),
|
||||
withCredentials: true
|
||||
};
|
||||
return this.http.post<any>(host+"/api/logout", {}, options);
|
||||
return this.http.post<any>(host+"/api/configurateur/logout", {}, options);
|
||||
}
|
||||
|
||||
getCurrentUser():Observable<Utilisateur> {
|
||||
@@ -53,6 +53,6 @@ export class BackendService {
|
||||
}),
|
||||
withCredentials: true
|
||||
};
|
||||
return this.http.get<Utilisateur>(host+"/api/current", options);
|
||||
return this.http.get<Utilisateur>(host+"/api/configurateur/current", options);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user