Compare commits

..

No commits in common. "7d707051d5f2ebe149ce7252d47c6b13b31b7e94" and "1147a5a10a1baa10ec42d68dd77fbfe0342f1ef7" have entirely different histories.

View File

@ -19,7 +19,7 @@ export class OtpComponent implements OnInit {
message = signal('');
countdown = signal(0);
timer: NodeJS.Timeout | undefined;
returnUrl = '';
returnUrl = '/';
fb: FormBuilder = inject(FormBuilder);
authService: AuthService = inject(AuthService);
router: Router = inject(Router);
@ -35,13 +35,13 @@ export class OtpComponent implements OnInit {
});
if(this.authService.isLoggedIn()){
this.router.navigate(['']);
this.router.navigateByUrl('/');
}
}
ngOnInit() {
this.returnUrl = this.route.snapshot.queryParamMap.get('returnUrl') || '';
this.returnUrl = this.route.snapshot.queryParamMap.get('returnUrl') || '/';
}
sendOtp() {