Jump to content

"Remember me" checkbox OFF by default in Login form


hxigor
 Share

Recommended Posts

  • 1 month later...

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 year later...
 Share

  • Recently Browsing   0 members

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