Skip to content

Commit

Permalink
Merge pull request #61 from igorkulman/master
Browse files Browse the repository at this point in the history
Ability to manually initiate touch id / face id authentication
  • Loading branch information
liu044100 authored Sep 21, 2018
2 parents 1253939 + c2bd7f7 commit b0f7090
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SmileLock/Classes/PasswordContainerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ open class PasswordContainerView: UIView {
}

@IBAction func touchAuthenticationAction(_ sender: UIButton) {
touchAuthentication()
}

open func touchAuthentication() {
guard isTouchAuthenticationAvailable else { return }
touchIDContext.evaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, localizedReason: touchAuthenticationReason) { (success, error) in
DispatchQueue.main.async {
Expand Down

0 comments on commit b0f7090

Please sign in to comment.