diff options
author | justin-sleep <justin@quarterfull.com> | 2016-12-02 14:07:45 -0600 |
---|---|---|
committer | justin-sleep <justin@quarterfull.com> | 2016-12-02 14:07:45 -0600 |
commit | 25a5c655f7cfb24b2bac597d6ec6ca68316098e9 (patch) | |
tree | a1eb4a15152d45c21e13ba8368379e2b2f033192 /core | |
parent | bcadd22480359c168a1222bb5d1974b333b4df55 (diff) | |
download | nextcloud-server-25a5c655f7cfb24b2bac597d6ec6ca68316098e9.tar.gz nextcloud-server-25a5c655f7cfb24b2bac597d6ec6ca68316098e9.zip |
Move integer casting to the top of the chain
Signed-off-by: justin-sleep <justin@quarterfull.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/LoginController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php index b1542de5d3c..c3ccac37f78 100644 --- a/core/Controller/LoginController.php +++ b/core/Controller/LoginController.php @@ -240,7 +240,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->login($user, $password); - $this->userSession->createSessionToken($this->request, $loginResult->getUID(), $user, $password, $remember_login); + $this->userSession->createSessionToken($this->request, $loginResult->getUID(), $user, $password, (int)$remember_login); // User has successfully logged in, now remove the password reset link, when it is available $this->config->deleteUserValue($loginResult->getUID(), 'core', 'lostpassword'); |