formation 4 yıl önce
ebeveyn
işleme
9490ad7e85

+ 3 - 3
angular-client/src/app/components/login/login.component.ts

@@ -73,14 +73,14 @@ export class LoginComponent implements OnInit {
    this.authService.signIn(this.formGroup.value).subscribe(
     data => {
         // this.router.navigate([this.returnUrl]);
-        console.log(data)
+        console.log(data);
         this.loading = false;
         this.router.navigate(['auth']);
     },
     err => {
         this.loading = false;
-        console.log(err.error.message)
-        this.authService.openSnackBar(err.error.message)
+        console.log(err.error.message);
+        this.authService.openSnackBar(err.error.message);
     });
     // this.router.navigate(['/']);
 

+ 1 - 1
angular-client/src/app/services/auth.service.ts

@@ -17,7 +17,7 @@ import * as jwt_decode from 'jwt-decode';
 export class AuthService {
 
   //url api
-  private apiUrl = 'https://api-preprod.foodgame.fr'
+  private apiUrl = environment.apiUrl
 
 
   private tokenSubject: BehaviorSubject<Token>;