add passcode and touch ID

This commit is contained in:
Bob Sun 2017-02-07 20:24:58 +08:00
parent b022612e83
commit a31e9776fe
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
8 changed files with 133 additions and 8 deletions

View 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()
}
}