mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
adjust faceid check logic
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user