]> git.mxchange.org Git - friendica.git/commitdiff
Fixed:
authorRoland Häder <roland@mxchange.org>
Fri, 20 Dec 2019 22:15:21 +0000 (23:15 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 20 Dec 2019 22:15:21 +0000 (23:15 +0100)
- needs to be `prvkey`, not `prvKey`

Signed-off-by: Roland Häder <roland@mxchange.org>
src/App/Authentication.php

index 5da0f875b4dc6ecfd747ff1e690c90629fe95f46..b88690415ca9ce7e4a9e1f88aa3577c46e3e0b36 100644 (file)
@@ -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');
                        }
                }