ABPadLockScreen icon indicating copy to clipboard operation
ABPadLockScreen copied to clipboard

Forgot Button not doing anything

Open rkittinger opened this issue 7 years ago • 1 comments

Hello, what should the Forgot button do? When I press it nothing shows up. Version 3.4.2

rkittinger avatar Sep 11 '18 09:09 rkittinger

If you implement the ABLockScreenDelegate forgotPinForPadLockScreenViewController method, when you press the Forgot button the business logic at that point is up to you and your application requirements/features.

For example if you are using ABPadLockScreen to unlock a financial app. If the user forgot their passcode you could implement a UIAlertController in the forgotPinForPadLockScreenViewController method to notify the user to sign out, or even create a workflow to reset their passcode.

A simple example in ExampleViewController.

If you do not need the Forgot button, it can also be hidden.

mteece avatar Sep 11 '18 20:09 mteece