Skip to content
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

Merged
merged 3 commits into from
Apr 6, 2018
Merged

Always remember me #9109

merged 3 commits into from
Apr 6, 2018

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Apr 6, 2018

Fixes #8004

Remove remember me from the login page and just always remember.

Fixes #8004

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer rullzer added enhancement 2. developing Work in progress labels Apr 6, 2018
@rullzer rullzer added this to the Nextcloud 14 milestone Apr 6, 2018
@rullzer rullzer added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Apr 6, 2018
@@ -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 = '') {
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff, finally! :)

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@codecov
Copy link

codecov bot commented Apr 6, 2018

Codecov Report

Merging #9109 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@             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
Impacted Files Coverage Δ Complexity Δ
core/templates/login.php 0% <ø> (ø) 0 <0> (ø) ⬇️
core/Controller/LoginController.php 79.02% <100%> (-0.29%) 38 <15> (-2)
core/js/js.js 65.29% <0%> (-0.56%) 0% <0%> (ø)

Copy link
Member

@juliusknorr juliusknorr left a 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;
Copy link
Member

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>
@rullzer rullzer merged commit a13440d into master Apr 6, 2018
@rullzer rullzer deleted the feature/8004/always_remember branch April 6, 2018 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants