add passcode and touch ID
This commit is contained in:
parent
b022612e83
commit
a31e9776fe
8 changed files with 133 additions and 8 deletions
29
pass/PasscodeLockConfiguration.swift
Normal file
29
pass/PasscodeLockConfiguration.swift
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
//
|
||||
// PasscodeLockConfiguration.swift
|
||||
// pass
|
||||
//
|
||||
// Created by Mingshen Sun on 7/2/2017.
|
||||
// Copyright © 2017 Bob Sun. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import PasscodeLock
|
||||
|
||||
struct PasscodeLockConfiguration: PasscodeLockConfigurationType {
|
||||
|
||||
let repository: PasscodeRepositoryType
|
||||
let passcodeLength = 4
|
||||
var isTouchIDAllowed = false
|
||||
let shouldRequestTouchIDImmediately = true
|
||||
let maximumInccorectPasscodeAttempts = 3
|
||||
|
||||
init(repository: PasscodeRepositoryType) {
|
||||
|
||||
self.repository = repository
|
||||
}
|
||||
|
||||
init() {
|
||||
|
||||
self.repository = PasscodeLockRepository()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue