formation пре 4 година
родитељ
комит
0620f7cb49

+ 1 - 2
angular-client/src/app/components/register/register.component.ts

@@ -18,7 +18,6 @@ const facebookLogoURL = "../assets/img/social/facebook.svg";
   styleUrls: ['./register.component.scss']
 })
 export class RegisterComponent implements OnInit {
-  returnUrl: any;
 
   constructor(public router: Router, private authService : AuthService, private formBuilder: FormBuilder, private matIconRegistry: MatIconRegistry, private domSanitizer: DomSanitizer) 
    { this.matIconRegistry.addSvgIcon("googleLogo", this.domSanitizer.bypassSecurityTrustResourceUrl(googleLogoURL)),
@@ -143,7 +142,7 @@ export class RegisterComponent implements OnInit {
     this.loading = true;
    this.authService.signUP(this.formGroup.value).subscribe(
     data => {
-         this.router.navigate([this.returnUrl]);
+        // this.router.navigate([this.returnUrl]);
         console.log(data)
         this.loading = false;
         this.router.navigate(['auth']);

+ 1 - 1
angular-client/src/environments/environment.prod.ts

@@ -1,4 +1,4 @@
 export const environment = {
   production: true,
-  apiUrl: `https://api-preprod.foodgame.fr/api`,
+  apiUrl: `https://api-preprod.foodgame.fr/`,
 };