Fix authentication reasons
This commit is contained in:
parent
f766e0893a
commit
91e535243a
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ struct passwordApp: App {
|
||||||
var error: NSError?
|
var error: NSError?
|
||||||
|
|
||||||
if context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) {
|
if context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) {
|
||||||
let reason = "This app displays passwords in clear text. Please authenticate using Touch ID or Face ID."
|
let reason = "keep your secrets safe"
|
||||||
|
|
||||||
context.evaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, localizedReason: reason) { success, authenticationError in
|
context.evaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, localizedReason: reason) { success, authenticationError in
|
||||||
if success {
|
if success {
|
||||||
|
@ -34,7 +34,7 @@ struct passwordApp: App {
|
||||||
|
|
||||||
func fallBackToPasscode() {
|
func fallBackToPasscode() {
|
||||||
let context = LAContext()
|
let context = LAContext()
|
||||||
let reason = "This app displays passwords in clear text. Please authenticate using your passcode."
|
let reason = "keep your secrets safe"
|
||||||
|
|
||||||
context.evaluatePolicy(.deviceOwnerAuthentication, localizedReason: reason) { success, authenticationError in
|
context.evaluatePolicy(.deviceOwnerAuthentication, localizedReason: reason) { success, authenticationError in
|
||||||
if success {
|
if success {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue