Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config option to customize the user foreign key field in LockoutHandler #1087

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixed phpcs
  • Loading branch information
AReveron committed Apr 30, 2024
commit 967dc9b8d5399fc5a30084017c65a6617d8c7693
4 changes: 2 additions & 2 deletions src/Identifier/PasswordLockout/LockoutHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ public function isUnlocked(\ArrayAccess|array $identity): bool
$lastAttempt = $this->getLastAttempt($identity['id'], $timeWindow);
$this->getTableLocator()
->get($this->getConfig('usersModel'))
->updateAll([$lockoutField => $lastAttempt->created], ['id' => $identity['id']]);
->updateAll([$lockoutField => $lastAttempt->get('created')], ['id' => $identity['id']]);

return $this->checkLockoutTime($lastAttempt->created);
return $this->checkLockoutTime($lastAttempt->get('created'));
}

/**
Expand Down
Loading
  NODES
COMMUNITY 2
Note 1
Project 4
USERS 4