Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
how to set “Remember me” as a default setting?
My visitors want to remember their cookies in their computer and they don't want to click the option to select "Remember me on this computer" when they sign in.
So, how to set "Remember me on this computer" as a default setting?
So, how to set "Remember me on this computer" as a default setting?
Tagged:
2
Comments
auth/password.php
registerbasic.php
registercaptcha.php
registerinvitation.php
signin.php
Inside those files, search for the line containing RememberMe. It looks something (but not always exactly) like this:
echo $this->Form->CheckBox('RememberMe', T('Remember me on this computer'), array('value' => '1', 'id' => 'SignInRememberMe'));
you want to add 'checked'=>'checked' to that last array. So the final line will look like this:
echo $this->Form->CheckBox('RememberMe', T('Remember me on this computer'), array('value' => '1', 'id' => 'SignInRememberMe', 'checked'=>'checked'));
Of course this means editing the core files and that is a Bad Idea (tm). There's probably another way to do this by using a theme, but I don't know for sure.
//edited for silliness, see below
thanks! it works.