web/satellite: iframe checking added for login/register/forgotpass views
Change-Id: I2256c50498afc815f57fe0d87af1d2f60a1a5d60
This commit is contained in:
parent
07da9d17c4
commit
f4472b0b8c
@ -31,6 +31,13 @@ export default class ForgotPassword extends Vue {
|
||||
|
||||
private readonly auth: AuthHttpApi = new AuthHttpApi();
|
||||
|
||||
/**
|
||||
* Checks if page is inside iframe
|
||||
*/
|
||||
public get isInsideIframe(): boolean {
|
||||
return window.self !== window.top;
|
||||
}
|
||||
|
||||
public setEmail(value: string): void {
|
||||
this.email = value;
|
||||
this.emailError = '';
|
||||
|
@ -42,6 +42,13 @@ export default class Login extends Vue {
|
||||
|
||||
private readonly auth: AuthHttpApi = new AuthHttpApi();
|
||||
|
||||
/**
|
||||
* Checks if page is inside iframe
|
||||
*/
|
||||
public get isInsideIframe(): boolean {
|
||||
return window.self !== window.top;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reloads page.
|
||||
*/
|
||||
|
@ -89,6 +89,13 @@ export default class RegisterArea extends Vue {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if page is inside iframe
|
||||
*/
|
||||
public get isInsideIframe(): boolean {
|
||||
return window.self !== window.top;
|
||||
}
|
||||
|
||||
public showPasswordStrength(): void {
|
||||
this.isPasswordStrengthShown = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user