correction bug pour la page de login

This commit is contained in:
Vincent BENOIT
2022-10-04 16:33:23 +02:00
parent 5062275a15
commit aba237c44d
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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;
});
+4 -4
View File
@@ -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);
}
}