mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
toggle password on unlock page
This commit is contained in:
@@ -18,6 +18,7 @@ import { UserService } from 'jslib/abstractions/user.service';
|
||||
})
|
||||
export class LockComponent {
|
||||
masterPassword: string = '';
|
||||
showPassword: boolean = false;
|
||||
|
||||
constructor(private router: Router, private analytics: Angulartics2,
|
||||
private toasterService: ToasterService, private i18nService: I18nService,
|
||||
@@ -53,4 +54,10 @@ export class LockComponent {
|
||||
this.messagingService.send('logout');
|
||||
}
|
||||
}
|
||||
|
||||
togglePassword() {
|
||||
this.analytics.eventTrack.next({ action: 'Toggled Master Password on Unlock' });
|
||||
this.showPassword = !this.showPassword;
|
||||
document.getElementById('masterPassword').focus();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user