From aba237c44dda55fd64907c13040d8c2acba94e4b Mon Sep 17 00:00:00 2001 From: Vincent BENOIT Date: Tue, 4 Oct 2022 16:33:23 +0200 Subject: [PATCH] correction bug pour la page de login --- src/app/components/login/login.component.ts | 2 +- src/app/services/backend/backend.service.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/components/login/login.component.ts b/src/app/components/login/login.component.ts index ff69822..0c0ff7c 100644 --- a/src/app/components/login/login.component.ts +++ b/src/app/components/login/login.component.ts @@ -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; }); diff --git a/src/app/services/backend/backend.service.ts b/src/app/services/backend/backend.service.ts index a5de5a7..1ccec92 100644 --- a/src/app/services/backend/backend.service.ts +++ b/src/app/services/backend/backend.service.ts @@ -20,7 +20,7 @@ export class BackendService { withCredentials: true }; - return this.http.post(host+"/api/login", {}, options); + return this.http.post(host+"/api/configurateur/login", {}, options); } isConnected():Observable { @@ -31,7 +31,7 @@ export class BackendService { }), withCredentials: true }; - return this.http.get(host+"/api/userConnected", options); + return this.http.get(host+"/api/configurateur/userConnected", options); } logoutUser():Observable { @@ -42,7 +42,7 @@ export class BackendService { }), withCredentials: true }; - return this.http.post(host+"/api/logout", {}, options); + return this.http.post(host+"/api/configurateur/logout", {}, options); } getCurrentUser():Observable { @@ -53,6 +53,6 @@ export class BackendService { }), withCredentials: true }; - return this.http.get(host+"/api/current", options); + return this.http.get(host+"/api/configurateur/current", options); } }