Skip to content

Commit 24579fa

Browse files
committed
Merge pull request velikanov#18 from ziogaschr/skip-biometrics-when-no-passcode
Skip biometrics check when no passcode is set
2 parents bd0dcb1 + e28236d commit 24579fa

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)