Save app passcode in Keychain and migrate existing passcode from SharedDefaults

This commit is contained in:
Danny Moesch 2019-07-10 21:57:15 +02:00 committed by Mingshen Sun
parent cc493cb490
commit 8e8501abb0
3 changed files with 18 additions and 11 deletions

View file

@ -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()