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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user