I wonder what line in what file should I modify to change the default "Remember me" value from "checked" to "false"..
For safety of my users, I need to make it unchecked by default >.<
Thank you!!
I wonder what line in what file should I modify to change the default "Remember me" value from "checked" to "false"..
For safety of my users, I need to make it unchecked by default >.<
Thank you!!
Yes, I always take notes of everything I've changed to the core files ^_^
If you need a little more detailed info on where to find it (in 1.6 version), it’s around this area toward the bottom of the page.
$username = new TextField('identity');
$username->setRequired(true);
$username->setHasInvitation(true);
$username->setInvitation(OW::getLanguage()->text('base', 'component_sign_in_login_invitation'));
$form->addElement($username);
$password = new PasswordField('password');
$password->setHasInvitation(true);
$password->setInvitation('password');
$password->setRequired(true);
$form->addElement($password);
$remeberMe = new CheckboxField('remember');
$remeberMe->setLabel(OW::getLanguage()->text('base', 'sign_in_remember_me_label'));
$remeberMe->setValue(true); <<<<<<<<<<<<<<<<<<<<<
$form->addElement($remeberMe);
$submit = new Submit('submit', $submitDecorator);
$submit->setValue(OW::getLanguage()->text('base', 'sign_in_submit_label'));
$form->addElement($submit);
return $form;
Worked for me when I changed it to "false", thanks Daisy!
Wilson