velikanov / SwiftPasscodeLock

An iOS passcode lock with TouchID authentication written in Swift.
MIT License
199 stars 52 forks source link

inccorectPasscodeAttempts value not persisted between app launches #26

Closed le4ker closed 6 months ago

le4ker commented 8 years ago

Opened it in the forked repository as well.

This bug allows to brute force the passcode lock by quitting the app before reaching the maximum > attempts limit and then opening the app again.

A solution could be to store the value in the NSUserDefaults or the Keychain.

ziogaschr commented 8 years ago

An attempt to show how to fix this has been added in PR #27. Can you check if this is working for you and close this issue if works?

le4ker commented 7 years ago

Hi guys. Any update on this bug? @ziogaschr PR #27 was a correct fix 😄

ziogaschr commented 7 years ago

@PanosSakkos I will try to merge PR #27 soon. I have some work at the moment, but I will try to find some time