Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
hxigor Posted February 12, 2018 Posted February 12, 2018 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.
PPlanet Posted March 20, 2018 Posted March 20, 2018 I have the same request from my members. So, anyone knows please?
dmaidon Posted March 21, 2018 Posted March 21, 2018 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.
PPlanet Posted March 22, 2018 Posted March 22, 2018 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.
dmaidon Posted March 22, 2018 Posted March 22, 2018 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.
Maya Andersen Posted May 1, 2019 Posted May 1, 2019 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.