Upgrade to 3.4.4

This commit is contained in:
Bastian Allgeier
2020-10-06 10:23:02 +02:00
parent c091f04115
commit 0b80361a79
53 changed files with 976 additions and 83 deletions

View File

@@ -265,6 +265,8 @@ class Auth
// check for blocked ips
if ($this->isBlocked($email) === true) {
$this->kirby->trigger('user.login:failed', compact('email'));
if ($this->kirby->option('debug') === true) {
$message = 'Rate limit exceeded';
} else {
@@ -397,6 +399,8 @@ class Auth
*/
public function track(string $email): bool
{
$this->kirby->trigger('user.login:failed', compact('email'));
$ip = $this->ipHash();
$log = $this->log();
$time = time();