1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-09 03:53:15 +00:00

masterPassOnRestart option for pin locking

This commit is contained in:
Kyle Spearrin
2019-05-31 15:30:22 -04:00
parent f3edae9bb1
commit e0e69920e9
3 changed files with 15 additions and 1 deletions

View File

@@ -207,9 +207,11 @@ namespace Bit.App.Pages
{
var pin = await _deviceActionService.DisplayPromptAync(AppResources.EnterPIN,
AppResources.SetPINDescription, null, AppResources.Submit, AppResources.Cancel, true);
var masterPassOnRestart = true;
if(!string.IsNullOrWhiteSpace(pin))
{
var masterPassOnRestart = await _platformUtilsService.ShowDialogAsync(
AppResources.PINRequireMasterPasswordRestart, AppResources.UnlockWithPIN,
AppResources.Yes, AppResources.No);
if(masterPassOnRestart)
{
var encPin = await _cryptoService.EncryptAsync(pin);