|
|
|
@ -33,6 +33,7 @@ export class LoginComponent implements OnDestroy, OnInit {
|
|
|
|
|
public baseUrl: string;
|
|
|
|
|
public loginWithOmbi: boolean;
|
|
|
|
|
public pinTimer: any;
|
|
|
|
|
public oauthLoading: boolean;
|
|
|
|
|
|
|
|
|
|
public get appName(): string {
|
|
|
|
|
if (this.customizationSettings.applicationName) {
|
|
|
|
@ -97,7 +98,7 @@ export class LoginComponent implements OnDestroy, OnInit {
|
|
|
|
|
});
|
|
|
|
|
this.timer = setInterval(() => {
|
|
|
|
|
this.cycleBackground();
|
|
|
|
|
}, 15000);
|
|
|
|
|
}, 30000);
|
|
|
|
|
|
|
|
|
|
const base = this.href;
|
|
|
|
|
if (base.length > 1) {
|
|
|
|
@ -160,9 +161,7 @@ export class LoginComponent implements OnDestroy, OnInit {
|
|
|
|
|
|
|
|
|
|
this.pinTimer = setInterval(() => {
|
|
|
|
|
|
|
|
|
|
this.notify.open("Authenticating. Loading... Please Wait", "OK", {
|
|
|
|
|
duration: 3000
|
|
|
|
|
});
|
|
|
|
|
this.oauthLoading = true;
|
|
|
|
|
this.getPinResult(x.pinId);
|
|
|
|
|
}, 4000);
|
|
|
|
|
});
|
|
|
|
@ -180,6 +179,7 @@ export class LoginComponent implements OnDestroy, OnInit {
|
|
|
|
|
if(this.oAuthWindow) {
|
|
|
|
|
this.oAuthWindow.close();
|
|
|
|
|
}
|
|
|
|
|
this.oauthLoading = false;
|
|
|
|
|
this.router.navigate(["search"]);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|