web/satellite: iframe checking added for login/register/forgotpass views

Change-Id: I2256c50498afc815f57fe0d87af1d2f60a1a5d60
This commit is contained in:
VitaliiShpital 2020-02-17 15:04:08 +02:00 committed by Vitalii Shpital
parent 07da9d17c4
commit f4472b0b8c
3 changed files with 21 additions and 0 deletions

View File

@ -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 = '';

View File

@ -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.
*/

View File

@ -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;
}