SG-1047 Fix remember me on web (#4706)

This commit is contained in:
Carlos Gonçalves 2023-02-09 21:53:05 +00:00 committed by GitHub
parent de5ef14dda
commit d27ef74fe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ export class LoginWithDeviceComponent
const navigation = this.router.getCurrentNavigation();
if (navigation) {
this.email = navigation.extras?.state?.email;
this.email = this.loginService.getEmail();
}
//gets signalR push notification

View File

@ -184,8 +184,8 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit
return;
}
const email = this.formGroup.get("email").value;
this.router.navigate(["/login-with-device"], { state: { email: email } });
this.setFormValues();
this.router.navigate(["/login-with-device"]);
}
async launchSsoBrowser(clientId: string, ssoRedirectUri: string) {