liu044100 / SmileTouchID

A Library for configure Touch ID & passcode conveniently
MIT License
502 stars 57 forks source link

Ability to use auth without TouchID #10

Closed laGrave closed 8 years ago

laGrave commented 8 years ago

Is there ability to use auth functionality with TouchID disabled (for devices with TouchID sensor)? INPUT_ONCE means "turn off auth after entering password" but not "use only password authentication"

BilalReffas commented 8 years ago

I don't understand your question what do you mean ?

laGrave commented 8 years ago

In this example TouchID is enabled automatically: if ([SmileAuthenticator hasPassword]) { [SmileAuthenticator sharedInstance].securityType = INPUT_TOUCHID; [[SmileAuthenticator sharedInstance] presentAuthViewController]; }

But what if I want to lock app with only password (with TouchID disabled)?

liu044100 commented 8 years ago

Hello, laGrave.

SmileTouchID default enable TouchID if the hardware support it, if you want to lock app with only password, maybe you can comment the code in the -(void)authenticateWithSuccess:(AuthCompletionBlock)authSuccessBlock andFailure:(AuthErrorBlock)failureBlock method in SmileAuthenticator.m .