mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-27 12:26:31 +01:00
masterPassOnRestart option for pin locking
This commit is contained in:
parent
f3edae9bb1
commit
e0e69920e9
@ -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);
|
||||
|
9
src/App/Resources/AppResources.Designer.cs
generated
9
src/App/Resources/AppResources.Designer.cs
generated
@ -2985,6 +2985,15 @@ namespace Bit.App.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to You you want to require unlocking with your master password when the application is restarted?.
|
||||
/// </summary>
|
||||
public static string PINRequireMasterPasswordRestart {
|
||||
get {
|
||||
return ResourceManager.GetString("PINRequireMasterPasswordRestart", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Possible Matching Items.
|
||||
/// </summary>
|
||||
|
@ -1573,4 +1573,7 @@
|
||||
<data name="ExitConfirmation" xml:space="preserve">
|
||||
<value>Are you sure you want to exit Bitwarden?</value>
|
||||
</data>
|
||||
<data name="PINRequireMasterPasswordRestart" xml:space="preserve">
|
||||
<value>You you want to require unlocking with your master password when the application is restarted?</value>
|
||||
</data>
|
||||
</root>
|
Loading…
Reference in New Issue
Block a user