Remove Face ID Permission Text
Nucleic-Session: 3EF7F067-2199-41C2-997C-5546C1A8A5C4 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -92,23 +92,6 @@ struct ApprovalCardView: View {
|
|||||||
case .toolNameWithPattern: "\(approval.toolName) matching this pattern"
|
case .toolNameWithPattern: "\(approval.toolName) matching this pattern"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private func authenticate() {
|
|
||||||
let context = LAContext()
|
|
||||||
var error: NSError?
|
|
||||||
guard context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) else {
|
|
||||||
authError = "Biometrics unavailable"; return
|
|
||||||
}
|
|
||||||
context.evaluatePolicy(
|
|
||||||
.deviceOwnerAuthenticationWithBiometrics,
|
|
||||||
localizedReason: "Approve a \(approval.risk.label) action"
|
|
||||||
) { success, evalError in
|
|
||||||
Task { @MainActor in
|
|
||||||
if success { biometricPassed = true; authError = nil }
|
|
||||||
else { authError = evalError?.localizedDescription ?? "Authentication failed" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The full content of an approval, wrapped and selectable. The box sizes to its
|
/// The full content of an approval, wrapped and selectable. The box sizes to its
|
||||||
|
|||||||
Reference in New Issue
Block a user