Force "Remember Me" at login to permanently be checked

Permalink
Hi everyone. Due to Internet Explorer being a brat and often not allowing my users to log in due to not saving the required cookies, I have found that as long as the "Remember Me" checkbox is selected, IE usually ends up allowing login.
I want to code it so that there is no checkbox at all and the process that happens when it would be checked (uMaintainLogin or whatever it is) happens automatically behind the scenes.
My guess is it is just a couple of lines of code to change, but I haven't been able to make it work on my own.

Thanks much,
Kari

 
Job replied on at Permalink Reply
Job
Copy login.php from /concrete/single_pages/ into /single_pages/ (the one you've copied will override the version in the core).

You can then modify the version you copied into /single_pages/ to make the changes you require. Personally, I would force it to be checked on load, rather than forcing it all the time. That setting is there for a reason, shared computers etc ...

Let me know how it goes.
Briann replied on at Permalink Reply
Apparently this problem is still present in Concrete 5.6.3.1.
Internet Explorer sometimes just fails to login, but not very consistently. No error is displayed, but the user is just not logged in.

I even noticed the problem on Concrete5.org. Firefox is perfectly fine, though.

Checking the checkbox solves the problem, it seems. Thus, I will leave it checked by default for now. (Indeed with overriding login.php, modifying this:

<label class="checkbox"><?php echo $form->checkbox('uMaintainLogin', 1)?> <span><?php echo t('Remain logged in to website.')?></span></label>


to:

<label class="checkbox"><?php echo $form->checkbox('uMaintainLogin', 1, 1)?> <span><?php echo t('Remain logged in to website.')?></span></label>