mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
hasEncKey checks
This commit is contained in:
@@ -28,8 +28,8 @@ export class ChangePasswordComponent {
|
||||
private userService: UserService) { }
|
||||
|
||||
async submit() {
|
||||
const hasKey = await this.cryptoService.hasKey();
|
||||
if (!hasKey) {
|
||||
const hasEncKey = await this.cryptoService.hasEncKey();
|
||||
if (!hasEncKey) {
|
||||
this.toasterService.popAsync('error', null, this.i18nService.t('updateKey'));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user