1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-23 11:45:38 +01:00

adjust faceid check logic

This commit is contained in:
Kyle Spearrin 2017-11-29 23:29:13 -05:00
parent aa61331181
commit a2c962c2f6

View File

@ -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;
}
}
}