mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-23 11:45:38 +01:00
hide password and clear field on unlock
This commit is contained in:
parent
eecf81f0a5
commit
ff7c9f210c
@ -141,6 +141,7 @@ namespace Bit.App.Pages
|
||||
return;
|
||||
}
|
||||
|
||||
ShowPassword = false;
|
||||
var kdf = await _userService.GetKdfAsync();
|
||||
var kdfIterations = await _userService.GetKdfIterationsAsync();
|
||||
|
||||
@ -157,6 +158,7 @@ namespace Bit.App.Pages
|
||||
_lockService.PinLocked = failed;
|
||||
if(!failed)
|
||||
{
|
||||
Pin = string.Empty;
|
||||
DoContinue();
|
||||
}
|
||||
}
|
||||
@ -165,6 +167,7 @@ namespace Bit.App.Pages
|
||||
var key = await _cryptoService.MakeKeyFromPinAsync(Pin, _email,
|
||||
kdf.GetValueOrDefault(KdfType.PBKDF2_SHA256), kdfIterations.GetValueOrDefault(5000));
|
||||
failed = false;
|
||||
Pin = string.Empty;
|
||||
await SetKeyAndContinueAsync(key);
|
||||
}
|
||||
}
|
||||
@ -191,6 +194,7 @@ namespace Bit.App.Pages
|
||||
var storedKeyHash = await _cryptoService.GetKeyHashAsync();
|
||||
if(storedKeyHash != null && keyHash != null && storedKeyHash == keyHash)
|
||||
{
|
||||
MasterPassword = string.Empty;
|
||||
await SetKeyAndContinueAsync(key);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user