rolandleth/LTHPasscodeViewController

problem with doesPasscodeExist function

skrosoft opened this issue · 2 comments

Hello @rolandleth

The function doesPasscodeExist actually return true if there is at least one passcode on the phone.

This function should receive opcionally parameters username and servicename, or use the current data setted with:

LTHPasscodeViewController.sharedUser().keychainPasscodeUsername = "user232"
LTHPasscodeViewController.sharedUser().keychainServiceName = "myServiceName"

It doesnt work for me with multiple users.

Vincent

Hey,

It doesn't receive a param, because it wasn't thought of having multiple users when it was created, but calling those setters should work (even just the username), because internally it asks for the passcode based on those properties.

I guess it could be improved by taking them as parameters, to improve the process a bit.

You're right, it works, i forgot to remove this line:

LTHPasscodeViewController.useKeychain(false)

Thanks,