passforios icon indicating copy to clipboard operation
passforios copied to clipboard

Keychain doesn't seem to get wiped on removal

Open machiel opened this issue 7 years ago • 8 comments

I started playing around with Pass for iOS and set a passcode, then a few months later I decided to really start using it, but by this time I had forgotten my passcode.

I tried deleting the app, wiping all the database, but after re-install it still prompts me for my passcode.

Is there anything I can do myself in order to fix it?

machiel avatar Sep 26 '19 13:09 machiel

Unfortunately, you cannot do anything yourself, except resetting your complete device. The passcode is stored in the keychain together with all the other sensitive data and only the app itself can change or delete it.

Also the app is not notified before it gets removed from a device. Thus, no code to clean things up can be executed prior to the removal.

There is a workaround which uses the UserDefaults to check a flag on each start of the app for whether it has been freshly installed or not. It works because UserDefaults are removed from the device together with the app. With that the data in the keychain could potentially be removed on the first start.

I'm not yet sure whether it is a good idea to implement that.

SimplyDanny avatar Sep 26 '19 17:09 SimplyDanny

I think we should add a way to reset the app when one forgets the passcode. For example, when one enters the wrong passcode for more than X times, a reset button shows up.

But I am kind of afraid that some users might be worried that others who can unlock the device could wiped the data... For me, it is not a problem because I am the only one who can unlock my device.

yishilin14 avatar Sep 27 '19 11:09 yishilin14

Oh, that would be great, I can imagine I won't be the only one forgetting the passcode. A method of resetting would be nice.

Personally I guess I'd prefer an accidental wipe over not being able to use the app at all, since you wouldn't lose actual data upon a reset.

machiel avatar Sep 27 '19 12:09 machiel

I added a "Forget your passcode?" button in the passcode lock view in 35f599c45b0a97aa3f33d01ecde5f62b0a74fdd1. Users could reset the app after authentication with biometry or the device passcode. Authentication isn't required If there is no device passcode.

Leave comments if you guys have any opinions about this functionality.

yishilin14 avatar Sep 28 '19 16:09 yishilin14

It's in 0.8.0 (10) for TestFlight beta testing.

@machiel Drop an email to [email protected] if you want to test.

yishilin14 avatar Sep 28 '19 16:09 yishilin14

Oh wow, that was quick, awesome! I sent an email for test flight access.

Thanks!

machiel avatar Sep 29 '19 11:09 machiel

Works great, thanks a lot, I appreciate it :)

machiel avatar Oct 02 '19 21:10 machiel

Closed, 0.8.0 (41) has been published in App Store.

Feel free to reopen this or create a new one if there are more related issues.

mssun avatar Nov 23 '19 00:11 mssun