1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not Planned "Stay Logged In" improvement

Discussion in 'Closed Suggestions' started by Vincent, Feb 2, 2012.

  1. Vincent

    Vincent Well-Known Member

    Hello,

    Something that quite bothers me, is having to keep clicking the "Stay Logged In" button. I still don't get why this isn't by default.

    So I found a way to let the Administrator choose whether to enable this or not.

    Step 1: Create a New Option
    stay_logged_in.png

    I called mine "stay_logged_in_default"

    Step 2: Enter it in the Code
    In the template called login_bar_form, change
    Code:
    <label for="ctrl_remember" class="rememberPassword"><input type="checkbox" name="remember" value="1" id="ctrl_remember" tabindex="103" /> {xen:phrase stay_logged_in}</label>
    to
    Code:
    <label for="ctrl_remember" class="rememberPassword"><input type="checkbox" name="remember" value="1" id="ctrl_remember" {xen:checked '{$xenOptions.stay_logged_in_default}'} tabindex="103" /> {xen:phrase stay_logged_in}</label>
    NOTE: This also has to be done for the non-javascript version of the login page.

    That's it.
    This way the Administrator can choose whether or not he wants Stay Logged In to be enabled by default or not.
     
    Romchik®, MCTSS, 0xym0r0n and 5 others like this.
  2. erich37

    erich37 Well-Known Member

    what is the difference of "staying logged-in" or not ?
     
  3. Fuhrmann

    Fuhrmann Well-Known Member

  4. Vincent

    Vincent Well-Known Member

    You stay logged in and don't logged out after one visit?
    Yes I've seen that, but I find it should be a default feature :)
     
    Fuhrmann likes this.

Share This Page