mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-28 12:35:40 +01:00
fix lint issue
This commit is contained in:
parent
fa0c0fa24d
commit
39e1d0865b
@ -65,6 +65,12 @@ export class RegisterComponent {
|
|||||||
} catch { }
|
} catch { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
togglePassword(confirmField: boolean) {
|
||||||
|
this.analytics.eventTrack.next({ action: 'Toggled Master Password on Register' });
|
||||||
|
this.showPassword = !this.showPassword;
|
||||||
|
document.getElementById(confirmField ? 'masterPasswordRetype' : 'masterPassword').focus();
|
||||||
|
}
|
||||||
|
|
||||||
private async register() {
|
private async register() {
|
||||||
this.email = this.email.toLowerCase();
|
this.email = this.email.toLowerCase();
|
||||||
const key = this.cryptoService.makeKey(this.masterPassword, this.email);
|
const key = this.cryptoService.makeKey(this.masterPassword, this.email);
|
||||||
@ -73,10 +79,4 @@ export class RegisterComponent {
|
|||||||
const request = new RegisterRequest(this.email, hashedPassword, this.hint, encKey.encryptedString);
|
const request = new RegisterRequest(this.email, hashedPassword, this.hint, encKey.encryptedString);
|
||||||
await this.apiService.postRegister(request);
|
await this.apiService.postRegister(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
togglePassword(confirmField: boolean) {
|
|
||||||
this.analytics.eventTrack.next({ action: 'Toggled Master Password on Register' });
|
|
||||||
this.showPassword = !this.showPassword;
|
|
||||||
document.getElementById(confirmField ? 'masterPasswordRetype' : 'masterPassword').focus();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user