Skip to content

Commit 1bf51c9

Browse files
committed
Unlock when passcode is deleted
1 parent f6befe3 commit 1bf51c9

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

VENTouchLock/VENTouchLock.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,6 @@ typedef NS_ENUM(NSUInteger, VENTouchLockTouchIDResponse) {
9494
*/
9595
- (void)lock;
9696

97-
/**
98-
If the passcode screen is presented, calling this method will unlock it.
99-
@param animated Whether or not the unlocking should animate.
100-
*/
101-
- (void)unlockAnimated:(BOOL)animated;
102-
10397
/**
10498
@return The proxy for the receiver's user interface. Custom appearance preferences may optionally be set by editing the returned instance's properties.
10599
*/

VENTouchLock/VENTouchLock.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ - (void)setPasscode:(NSString *)passcode
9797

9898
- (void)deletePasscode
9999
{
100+
[self unlockAnimated:NO];
101+
100102
[[NSUserDefaults standardUserDefaults] removeObjectForKey:VENTouchLockUserDefaultsKeyTouchIDActivated];
101103
[VENTouchLockEnterPasscodeViewController resetPasscodeAttemptHistory];
102104
[[NSUserDefaults standardUserDefaults] synchronize];

0 commit comments

Comments
 (0)