mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
hide password and clear field on unlock
This commit is contained in:
parent
eecf81f0a5
commit
ff7c9f210c
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue