summaryrefslogtreecommitdiff
path: root/app/Api/Auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Api/Auth.php')
-rw-r--r--app/Api/Auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Api/Auth.php b/app/Api/Auth.php
index b3627e4b..a084d6eb 100644
--- a/app/Api/Auth.php
+++ b/app/Api/Auth.php
@@ -28,7 +28,7 @@ class Auth extends Base
if ($username !== 'jsonrpc' && ! $this->authentication->hasCaptcha($username) && $this->authentication->authenticate($username, $password)) {
$this->checkProcedurePermission(true, $method);
- $this->userSession->refresh($this->user->getByUsername($username));
+ $this->userSession->initialize($this->user->getByUsername($username));
} elseif ($username === 'jsonrpc' && $password === $this->config->get('api_token')) {
$this->checkProcedurePermission(false, $method);
} else {