diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-06 15:44:28 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-06 15:44:28 +0200 |
commit | caee215120434420ba3f9cafd5b21c19b306d20d (patch) | |
tree | 22d3981b8b42379eb669723248d4ab18a35a917f /core/Controller/LoginController.php | |
parent | e970e9f7106c094d49fd3ed49244fb073b97e381 (diff) | |
download | nextcloud-server-caee215120434420ba3f9cafd5b21c19b306d20d.tar.gz nextcloud-server-caee215120434420ba3f9cafd5b21c19b306d20d.zip |
Always remember me
Fixes #8004
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/Controller/LoginController.php')
-rw-r--r-- | core/Controller/LoginController.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php index d0a91320e1f..fae997b1c6b 100644 --- a/core/Controller/LoginController.php +++ b/core/Controller/LoginController.php @@ -184,8 +184,6 @@ class LoginController extends Controller { } $parameters['alt_login'] = OC_App::getAlternativeLogIns(); - $parameters['rememberLoginState'] = !empty($remember_login) ? $remember_login : 0; - $parameters['hideRemeberLoginState'] = !empty($redirect_url) && $this->session->exists('client.flow.state.token'); if ($user !== null && $user !== '') { $parameters['loginName'] = $user; @@ -240,7 +238,7 @@ class LoginController extends Controller { * @param string $timezone_offset * @return RedirectResponse */ - public function tryLogin($user, $password, $redirect_url, $remember_login = false, $timezone = '', $timezone_offset = '') { + public function tryLogin($user, $password, $redirect_url, $remember_login = true, $timezone = '', $timezone_offset = '') { if(!is_string($user)) { throw new \InvalidArgumentException('Username must be string'); } |