mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
toggle password visibility on login/register
This commit is contained in:
@@ -29,6 +29,7 @@ export class LoginComponent {
|
||||
|
||||
email: string = '';
|
||||
masterPassword: string = '';
|
||||
showPassword: boolean = false;
|
||||
formPromise: Promise<AuthResult>;
|
||||
|
||||
constructor(private authService: AuthService, private router: Router, private analytics: Angulartics2,
|
||||
@@ -76,4 +77,10 @@ export class LoginComponent {
|
||||
modal.close();
|
||||
});
|
||||
}
|
||||
|
||||
togglePassword() {
|
||||
this.analytics.eventTrack.next({ action: 'Toggled Master Password on Login' });
|
||||
this.showPassword = !this.showPassword;
|
||||
document.getElementById('masterPassword').focus();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user