Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 12, 20187 yr How can I set the "Remember me" checkbox to OFF by default in the Login form? Most of our forum users are complaining that it's a serious security issue and definitely should be OFF by default.
March 21, 20187 yr This worked for me: loginForm under core|front|system <span class="ipsCustomInput"> <input type="checkbox" name="anonynmous" id="anonymous_checkbox" value="1" checked aria-checked="true"> <span></span> </span> Change to this: <span class="ipsCustomInput"> <input type="checkbox" name="anonynmous" id="anonymous_checkbox" value="1" aria-checked="false"> <span></span> </span> in the loginPopupForm under core|front|global edit the same line. The loginForm edit gets rid of the check in the Guest login widget and the other gets rid of the check in the header login.
March 22, 20187 yr Hello, thanks but is that IPS default template? This is the unmodified content of my loginForm under core|front|system <form accept-charset='utf-8' class="ipsPad ipsForm ipsForm_vertical" method='post' action='{$action}' data-ipsValidation novalidate> <input type="hidden" name="{$id}_submitted" value="1"> {{foreach $hiddenValues as $k => $v}} <input type="hidden" name="{$k}" value="{$v}"> {{endforeach}} <h4 class="ipsType_sectionHead">{lang="login"}</h4> <br><br> <ul class='ipsList_reset'> {{foreach $elements as $collection}} {{foreach $collection as $input}} {{if $input instanceof \IPS\Helpers\Form\Text}} <li class="ipsFieldRow ipsFieldRow_noLabel ipsFieldRow_fullWidth"> <input type="{$input->formType}" required placeholder="{lang="$input->name"}" name='{$input->name}' id='{$input->htmlId}'> </li> {{else}} {$input->rowHtml($form)|raw} {{endif}} {{endforeach}} {{endforeach}} <li class="ipsFieldRow ipsFieldRow_fullWidth"> <br> <input type="submit" class="ipsButton ipsButton_primary ipsButton_small" value="{lang="login"}" id="elSignIn_submit"> <br> <p class="ipsType_right ipsType_small"> <a href='{url="app=core&module=system&controller=lostpass" seoTemplate="lostpassword"}' data-ipsDialog data-ipsDialog-title='{lang="forgotten_password"}'>{lang="forgotten_password"}</a> </p> </li> </ul> </form> And I don't see that line in there.
March 22, 20187 yr Oops, forgot I am running 4.3 Beta on that system. I'll check the 4.2 system today and see if I can locate the string. Sorry.
May 1, 20195 yr Create a simple plugin or application with a theme hook that removes the attribute "checked" from the checkbox element. It's the easiest/simplest and safest/right way to go.
Archived
This topic is now archived and is closed to further replies.