-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always remember me #9109
Always remember me #9109
Conversation
Fixes #8004 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@@ -240,7 +238,7 @@ private function generateRedirect($redirectUrl) { | |||
* @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 = '') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the parameter still needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is used in a few places. We could get rid of it. But I want to do baby steps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff, finally! :)
Codecov Report
@@ Coverage Diff @@
## master #9109 +/- ##
============================================
- Coverage 51.88% 51.88% -0.01%
+ Complexity 25297 25295 -2
============================================
Files 1603 1603
Lines 95060 95054 -6
Branches 1388 1388
============================================
- Hits 49325 49318 -7
- Misses 45735 45736 +1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nitpick, besides that 👍
@@ -184,8 +185,6 @@ public function showLoginForm($user, $redirect_url, $remember_login) { | |||
} | |||
|
|||
$parameters['alt_login'] = OC_App::getAlternativeLogIns(); | |||
$parameters['rememberLoginState'] = !empty($remember_login) ? $remember_login : 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The $remember_login
parameter of this controller method can be removed.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Fixes #8004
Remove remember me from the login page and just always remember.