Browse Source

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

pull/4713/head
Carlos Gonçalves 3 years ago committed by GitHub
parent
commit
d27ef74fe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      libs/angular/src/auth/components/login-with-device.component.ts
  2. 4
      libs/angular/src/auth/components/login.component.ts

2
libs/angular/src/auth/components/login-with-device.component.ts

@ -67,7 +67,7 @@ export class LoginWithDeviceComponent @@ -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

4
libs/angular/src/auth/components/login.component.ts

@ -184,8 +184,8 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit @@ -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) {

Loading…
Cancel
Save