|
|
@@ -18,6 +18,7 @@ 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)),
|
|
|
@@ -142,7 +143,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']);
|