Jump to content

"Remember me" checkbox OFF by default in Login form


hxigor

Recommended Posts

Posted

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.

  • 1 month later...
Posted

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.

 

Posted

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.

  • 1 year later...
Posted

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...