fix bugs of the passcode function

This commit is contained in:
Bob Sun 2017-02-07 20:57:06 +08:00
parent a31e9776fe
commit f14c4662cb
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
6 changed files with 22 additions and 13 deletions

View file

@ -8,12 +8,13 @@
import Foundation
import PasscodeLock
import SwiftyUserDefaults
struct PasscodeLockConfiguration: PasscodeLockConfigurationType {
let repository: PasscodeRepositoryType
let passcodeLength = 4
var isTouchIDAllowed = false
var isTouchIDAllowed = Defaults[.isTouchIDOn]
let shouldRequestTouchIDImmediately = true
let maximumInccorectPasscodeAttempts = 3