use AuthenticationRequestConfiguration

This commit is contained in:
Kyle Spearrin 2017-06-02 15:16:26 -04:00
parent 753d01d413
commit fe1c58ad27
2 changed files with 14 additions and 2 deletions

View file

@ -86,7 +86,13 @@ namespace Bit.App.Pages
}
_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)
{
_appSettings.Locked = false;

View file

@ -70,7 +70,13 @@ namespace Bit.iOS.Extension
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)
{
_appSettingsService.Locked = false;