Compare commits
2 Commits
1147a5a10a
...
7d707051d5
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d707051d5 | |||
| 9a90903b33 |
@ -19,7 +19,7 @@ export class OtpComponent implements OnInit {
|
|||||||
message = signal('');
|
message = signal('');
|
||||||
countdown = signal(0);
|
countdown = signal(0);
|
||||||
timer: NodeJS.Timeout | undefined;
|
timer: NodeJS.Timeout | undefined;
|
||||||
returnUrl = '/';
|
returnUrl = '';
|
||||||
fb: FormBuilder = inject(FormBuilder);
|
fb: FormBuilder = inject(FormBuilder);
|
||||||
authService: AuthService = inject(AuthService);
|
authService: AuthService = inject(AuthService);
|
||||||
router: Router = inject(Router);
|
router: Router = inject(Router);
|
||||||
@ -35,13 +35,13 @@ export class OtpComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if(this.authService.isLoggedIn()){
|
if(this.authService.isLoggedIn()){
|
||||||
this.router.navigateByUrl('/');
|
this.router.navigate(['']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.returnUrl = this.route.snapshot.queryParamMap.get('returnUrl') || '/';
|
this.returnUrl = this.route.snapshot.queryParamMap.get('returnUrl') || '';
|
||||||
}
|
}
|
||||||
|
|
||||||
sendOtp() {
|
sendOtp() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user