mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
Add static constants
This commit is contained in:
@@ -59,6 +59,16 @@ final class PinCodePreferences: NSObject {
|
||||
return BuildSettings.notAllowedPINs
|
||||
}
|
||||
|
||||
/// Maximum number of allowed pin failures when unlocking, before force logging out the user
|
||||
var maxAllowedNumberOfPinFailures: Int {
|
||||
return BuildSettings.maxAllowedNumberOfPinFailures
|
||||
}
|
||||
|
||||
/// Maximum number of allowed biometrics failures when unlocking, before fallbacking the user to the pin
|
||||
var maxAllowedNumberOfBiometricsFailures: Int {
|
||||
return BuildSettings.maxAllowedNumberOfBiometricsFailures
|
||||
}
|
||||
|
||||
var isBiometricsAvailable: Bool {
|
||||
return LAContext().canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user