reset password attempts count after sync

This commit is contained in:
Bob Sun 2017-02-17 21:06:28 +08:00
parent cfe051ad56
commit 8135caf44d
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -75,6 +75,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
PasswordStore.shared.setAllSynced() PasswordStore.shared.setAllSynced()
self.setNavigationItemTitle() self.setNavigationItemTitle()
Defaults[.lastUpdatedTime] = Date() Defaults[.lastUpdatedTime] = Date()
Defaults[.gitRepositoryPasswordAttempts] = 0
SVProgressHUD.showSuccess(withStatus: "Done") SVProgressHUD.showSuccess(withStatus: "Done")
SVProgressHUD.dismiss(withDelay: 1) SVProgressHUD.dismiss(withDelay: 1)
} }