core icon indicating copy to clipboard operation
core copied to clipboard

»Remember« checkbox needed?

Open jancborchardt opened this issue 13 years ago • 30 comments

I wonder, why do we still have the »remember« checkbox on log in? It’s on by default, normal people switch it on as well, so it’s set anyway. For those who don’t want to be remembered, logging out should clear the cookies which would be set on »remembering«.

And is the other password remembering itself not handled pretty well by the browser?

@LukasReschke can you enlighten me? (I would really like if we find a way to have the »remember« checkbox go away and instead have all this handled automatically. :)

jancborchardt avatar Jul 02 '13 14:07 jancborchardt

(Oh and btw what prompted me to open this issue was reading http://www.troyhunt.com/2013/07/how-to-build-and-how-not-to-build.html and https://news.ycombinator.com/item?id=5969932 )

jancborchardt avatar Jul 02 '13 14:07 jancborchardt

Technical advisory please @LukasReschke @DeepDiver1975

jancborchardt avatar Jul 09 '13 11:07 jancborchardt

Why/when the user does NOT want his login remembered?

This is the use case of public pc e.g. in an internet cafe where simply closing the browser has to be enough to kill the session. Maybe we enhance the checkbox to some kind of 'This is a public pc' or what so ever. Yahoo mail used to have something like that. In this case we maybe have even the chance to tell the browser not to store passwords?

DeepDiver1975 avatar Jul 09 '13 11:07 DeepDiver1975

FYI: Yahoo Mail has that checkbox as well

DeepDiver1975 avatar Jul 09 '13 11:07 DeepDiver1975

Facebook has that checkbox as well.

DeepDiver1975 avatar Jul 09 '13 11:07 DeepDiver1975

Yeah, many sites have that checkbox (Dropbox, iCloud and Twitter as well), and some have checked it by default (Twitter, Wordpress and Gmail for instance).

Some popular ones which don’t have it at all (which is the equivalent of »remember« being checked) are Spotify, Vimeo, Pocket, Newsblur, Couchsurfing, Tumblr and GitHub.

jancborchardt avatar Jul 24 '13 08:07 jancborchardt

Now it's default on. Is this "fixed" then?

Niduroki avatar Jul 30 '13 17:07 Niduroki

It’s default on, but this issue is about if we can completely remove it. I’d still ponder it.

jancborchardt avatar Aug 01 '13 12:08 jancborchardt

Removing that checkbox and checking it as standard value is a very bad idea from the security perspective, because users who work on shared computers can easily forget to log-off now, as they have to do that explicitly.

For users who want to stay logged-in, there is not much overhead to enable the function, as will not see the complete login-form again - they are automatically logged in!

I vote for setting the old default or at least allowing the admin-user to set the default value or even to disable the stay-logged-in functionality completely; that would be a great thing for professional users.

weberhofer avatar Oct 11 '13 08:10 weberhofer

I’ll close this issue because I’m convinced by the arguments that fully removing the checkbox is probably a security issue.

But we will not reinstate the old default of needing to explicitly check that you want to stay logged in. Nor introduce yet another admin setting … come on, we design software so that life is easier for users and admins, not that they need to fiddle around and choose settings all the time.

jancborchardt avatar Oct 11 '13 08:10 jancborchardt

Yes, another setting is possibly to much. But select this per default is IMHO a security issue.

weberhofer avatar Oct 11 '13 10:10 weberhofer

I don't like this default either expecially for a software product which claims "web services under your control". I'd prefer a user to be explicitly responsible for leaving their credentials cached on someone elses browser and have to explain why the private or confidential data they were entrusted with has become public rather than have the user need to explicitly remember to disable the option every time they use OC via the browser on a work peer or friend's machine. Its not much effort to tick the box just once on browsers in 1-2 single-user OS accounts but recovering from a serious data leak or identity theft can cost a fortune and be extremely painful. I tried the following which seems to work Edit the owncloud file at owncloud/core/templates/login.php Go to line 39 (OC 5.0.12) and remove the word "checked" (column 78) from the attribute list for the checkbox.
... input type="checkbox" name="remember_login" value="1" id="remember_login" checked ... becomes ... input type="checkbox" name="remember_login" value="1" id="remember_login" ...

john7000 avatar Oct 30 '13 05:10 john7000

To check the remember-box by default is really a bad usability fault! Every time I login I wonder why the decision for this cumbersome behavior was made.

I don't know any website where this is checked by default and this is not only the expected behavior but also with good cause: People who don't want to be remembered have to tick the box every time they login. The other way round people who want to stay logged in would only need one click when they are visiting the site first.

come on, we design software so that life is easier for users and admins, not that they need to fiddle around and choose settings all the time.

@jancborchardt all the time (vs. one click) is indeed the the point why this function has to be default off!

Furthermore I fully agree with the arguments of @john7000!

bastei avatar Dec 10 '13 17:12 bastei

Let me repeat what I said above:

Yeah, many sites have that checkbox (Dropbox, iCloud and Twitter as well), and some have checked it by default (Twitter, Wordpress and Gmail for instance). Some popular ones which don’t have it at all (which is the equivalent of »remember« being checked) are Spotify, Vimeo, Pocket, Newsblur, Couchsurfing, Tumblr and GitHub.

And there’s always log out, which should unremember everything.

@owncloud/designers what do you think?

jancborchardt avatar Dec 10 '13 17:12 jancborchardt

I'm in favor of the default checked remember-login checkbox. For those that think this is bad/don't want this I'd however introduce a config.php setting (I like settings :smile:)

Niduroki avatar Dec 10 '13 17:12 Niduroki

Yeah, many sites have that checkbox [...], and some have checked it by default

Oh yes, I forgot these sites which earn their money by collecting data via cross-site tracking. For that purpose they need the user to stay logged in all the time, of course! I only wonder why facebook doesn't have it... ;)

I really don't want to make trouble here, but I think there are good arguments against the default "on" setting. Is there also any (impartial) pro-argument?

bastei avatar Dec 10 '13 19:12 bastei

Hi, I also think that it's better to leave the user if remember his login instead of force him to uncheck it every time at login. I must uncheck this option every time that I logon. Also, I understand the choice to leave checked. Today I made a silly app that remove the checkbox if you enable it. I Hope this can be useful to someone. :-) Sorry for my bad english! Don't know if I can post links...

feddar avatar Dec 27 '13 19:12 feddar

hi, uncheck for 6.0.0a. This works for me:

[root@share owncloud]# diff core/templates/login.php themes/example/core/templates/login.php
48c48
<               <input type="checkbox" name="remember_login" value="1" id="remember_login" checked />
---
>               <input type="checkbox" name="remember_login" value="1" id="remember_login" />

Thanks

hasafi avatar Jan 03 '14 06:01 hasafi

Hi hasafi, sure, you're right. Your solution is the easiest way, instead of doing an "app" (quoted because what I made is not really an app). But I thought to who don't know anything on programming (even only html) and I though that this could be useful. Ciao!

feddar avatar Jan 08 '14 11:01 feddar

I have a different but related issue. Ever since I installed my first OwnCloud (6.0.1) I actually never had 'Remember' checkbox and I would really appreciate to find a way to have this visible, because I do login sometimes for other computers. Any ideas?

Optokus69 avatar Feb 11 '14 14:02 Optokus69