Save app passcode in Keychain and migrate existing passcode from SharedDefaults
This commit is contained in:
parent
cc493cb490
commit
8e8501abb0
3 changed files with 18 additions and 11 deletions
|
|
@ -159,7 +159,7 @@ class SettingsTableViewController: UITableViewController, UITabBarControllerDele
|
|||
|
||||
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
||||
if tableView.cellForRow(at: indexPath) == passcodeTableViewCell {
|
||||
if SharedDefaults[.passcodeKey] != nil{
|
||||
if passcodeLock.hasPasscode {
|
||||
showPasscodeActionSheet()
|
||||
} else {
|
||||
setPasscodeLock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue