mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
use AuthenticationRequestConfiguration
This commit is contained in:
parent
753d01d413
commit
fe1c58ad27
2 changed files with 14 additions and 2 deletions
|
@ -86,7 +86,13 @@ namespace Bit.App.Pages
|
||||||
}
|
}
|
||||||
_lastAction = DateTime.UtcNow;
|
_lastAction = DateTime.UtcNow;
|
||||||
|
|
||||||
var result = await _fingerprint.AuthenticateAsync(AppResources.FingerprintDirection);
|
var fingerprintRequest = new AuthenticationRequestConfiguration(AppResources.FingerprintDirection)
|
||||||
|
{
|
||||||
|
AllowAlternativeAuthentication = true,
|
||||||
|
CancelTitle = AppResources.Cancel,
|
||||||
|
FallbackTitle = AppResources.LogOut
|
||||||
|
};
|
||||||
|
var result = await _fingerprint.AuthenticateAsync(fingerprintRequest);
|
||||||
if(result.Authenticated)
|
if(result.Authenticated)
|
||||||
{
|
{
|
||||||
_appSettings.Locked = false;
|
_appSettings.Locked = false;
|
||||||
|
|
|
@ -70,7 +70,13 @@ namespace Bit.iOS.Extension
|
||||||
|
|
||||||
public async Task CheckFingerprintAsync()
|
public async Task CheckFingerprintAsync()
|
||||||
{
|
{
|
||||||
var result = await _fingerprint.AuthenticateAsync(AppResources.FingerprintDirection);
|
var fingerprintRequest = new AuthenticationRequestConfiguration(AppResources.FingerprintDirection)
|
||||||
|
{
|
||||||
|
AllowAlternativeAuthentication = true,
|
||||||
|
CancelTitle = AppResources.Cancel,
|
||||||
|
FallbackTitle = AppResources.LogOut
|
||||||
|
};
|
||||||
|
var result = await _fingerprint.AuthenticateAsync(fingerprintRequest);
|
||||||
if(result.Authenticated)
|
if(result.Authenticated)
|
||||||
{
|
{
|
||||||
_appSettingsService.Locked = false;
|
_appSettingsService.Locked = false;
|
||||||
|
|
Loading…
Reference in a new issue