From a7c617cae28bfc5965e5bf0aaa30a5436cd23b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Fri, 20 Dec 2019 23:15:21 +0100 Subject: [PATCH] Fixed: - needs to be `prvkey`, not `prvKey` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- src/App/Authentication.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App/Authentication.php b/src/App/Authentication.php index 5da0f875b4..b88690415c 100644 --- a/src/App/Authentication.php +++ b/src/App/Authentication.php @@ -95,14 +95,14 @@ class Authentication if ($this->dba->isResult($user)) { if (!$this->cookie->check($data->hash, $user['password'] ?? '', - $user['prvKey'] ?? '')) { + $user['prvkey'] ?? '')) { $this->logger->notice("Hash doesn't fit.", ['user' => $data->uid]); $this->session->delete(); $this->baseUrl->redirect(); } // Renew the cookie - $this->cookie->set($user['uid'], $user['password'], $user['prvKey']); + $this->cookie->set($user['uid'], $user['password'], $user['prvkey']); // Do the authentification if not done by now if (!$this->session->get('authenticated')) { @@ -352,7 +352,7 @@ class Authentication */; if ($this->session->get('remember')) { $a->getLogger()->info('Injecting cookie for remembered user ' . $user_record['nickname']); - $this->cookie->set($user_record['uid'], $user_record['password'], $user_record['prvKey']); + $this->cookie->set($user_record['uid'], $user_record['password'], $user_record['prvkey']); $this->session->remove('remember'); } }