mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
adjust faceid check logic
This commit is contained in:
parent
aa61331181
commit
a2c962c2f6
1 changed files with 6 additions and 2 deletions
|
@ -37,8 +37,12 @@ namespace Bit.iOS.Core.Services
|
|||
}
|
||||
|
||||
var context = new LAContext();
|
||||
return context.CanEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, out NSError e) &&
|
||||
context.BiometryType == LABiometryType.TypeFaceId;
|
||||
if(!context.CanEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, out NSError e))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return context.BiometryType == LABiometryType.TypeFaceId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue