rolandleth / LTHPasscodeViewController

iOS 7 style Passcode Lock
MIT License
615 stars 142 forks source link

problem with doesPasscodeExist function #166

Closed skrosoft closed 8 years ago

skrosoft commented 8 years ago

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

rolandleth commented 8 years ago

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.

skrosoft commented 8 years ago

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

LTHPasscodeViewController.useKeychain(false)

Thanks,