Skip to content

Commit e28236d

Browse files
committed
Skip biometrics check when no passcode is set
1 parent bd0dcb1 commit e28236d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PasscodeLock/PasscodeLockViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ public class PasscodeLockViewController: UIViewController, PasscodeLockTypeDeleg
162162

163163
public func authenticateWithBiometrics() {
164164

165+
guard passcodeConfiguration.repository.hasPasscode else { return }
166+
165167
if passcodeLock.isTouchIDAllowed {
166168

167169
passcodeLock.authenticateWithBiometrics()

0 commit comments

Comments
 (0)