Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 71f7302

Browse files
committed
Updated isCorrectPin after merge with master
1 parent 3ff7718 commit 71f7302

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/entities/authenticator_impl.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@ class AuthenticatorImpl with WidgetsBindingObserver implements Authenticator {
316316
final userPin = await _repository.getPin(forUser: userId);
317317
if (userPin?.value != pin.value) {
318318
await _repository.addFailedAttempt(DateTime.now(), forUser: userId);
319+
if (await _isLockedDueToTooManyAttempts()) {
320+
return false;
321+
}
319322
return false;
320323
}
321324
await _repository.resetFailedAttempts(ofUser: userId);

0 commit comments

Comments
 (0)