summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-04-06 19:58:37 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-04-06 19:58:37 +0200
commit2b7d4d506976d26d1820cea3601953ed6e189f24 (patch)
treea8d8d045cd1b50c0a475c883326fb86781759106 /core
parentcaee215120434420ba3f9cafd5b21c19b306d20d (diff)
downloadnextcloud-server-2b7d4d506976d26d1820cea3601953ed6e189f24.tar.gz
nextcloud-server-2b7d4d506976d26d1820cea3601953ed6e189f24.zip
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core')
-rw-r--r--core/Controller/LoginController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
index fae997b1c6b..41467c5c887 100644
--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -33,6 +33,7 @@
namespace OC\Core\Controller;
+use OC\Authentication\Token\IToken;
use OC\Authentication\TwoFactorAuth\Manager;
use OC\Security\Bruteforce\Throttler;
use OC\User\Session;
@@ -286,7 +287,7 @@ class LoginController extends Controller {
// TODO: remove password checks from above and let the user session handle failures
// requires https://github.com/owncloud/core/pull/24616
$this->userSession->completeLogin($loginResult, ['loginName' => $user, 'password' => $password]);
- $this->userSession->createSessionToken($this->request, $loginResult->getUID(), $user, $password, (int)$remember_login);
+ $this->userSession->createSessionToken($this->request, $loginResult->getUID(), $user, $password, IToken::REMEMBER);
// User has successfully logged in, now remove the password reset link, when it is available
$this->config->deleteUserValue($loginResult->getUID(), 'core', 'lostpassword');