1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-27 03:52:57 +02:00

fix for export password handling (#1448)

This commit is contained in:
Matt Portune 2021-06-30 16:05:30 -04:00 committed by GitHub
parent 4f9985d2b0
commit 382e547f74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,10 +103,9 @@ namespace Bit.App.Pages
return;
}
MasterPassword = string.Empty;
var passwordValid = await _cryptoService.CompareAndUpdateKeyHashAsync(_masterPassword, null);
if (passwordValid)
MasterPassword = string.Empty;
if (!passwordValid)
{
await _platformUtilsService.ShowDialogAsync(_i18nService.T("InvalidMasterPassword"));
return;