1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

focus pin if using pinLock

This commit is contained in:
Kyle Spearrin
2019-02-13 10:05:58 -05:00
parent 53260a5be8
commit f67fac3eeb

View File

@@ -92,7 +92,7 @@ export class LockComponent implements OnInit {
togglePassword() { togglePassword() {
this.platformUtilsService.eventTrack('Toggled Master Password on Unlock'); this.platformUtilsService.eventTrack('Toggled Master Password on Unlock');
this.showPassword = !this.showPassword; this.showPassword = !this.showPassword;
document.getElementById('masterPassword').focus(); document.getElementById(this.pinLock ? 'pin' : 'masterPassword').focus();
} }
private async setKeyAndContinue(key: SymmetricCryptoKey) { private async setKeyAndContinue(key: SymmetricCryptoKey) {