ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CP Timeout Login

November 16, 2012 7:20am

Subscribe [1]
  • #1 / Nov 16, 2012 7:20am

    Lisa E

    124 posts

    I have a client that has some pretty long usernames (they use their email address).

    They can login fine on the main page, but when the CP times out and they try to login, the username field isn’t long enough. Is there a setting somewhere that I can adjust this?

    Thanks!

    Lisa

  • #2 / Nov 19, 2012 5:25pm

    Dan Decker

    7338 posts

    Hi Lisa E,

    I think you are referring to the drop-down authentication that shows up in the Control Panel?

    There isn’t a setting to change the length of the field. In the pop-down and the main login, i believe the field is set to 50.

    What I can’t find right away is the view file I need to tell you how to change the pop-down version of the form.

    Let me know which one specifically and I’ll keep digging in the meantime.

    Cheers,

  • #3 / Nov 19, 2012 6:19pm

    Lisa E

    124 posts

    That’s exactly what I’m talking about.
    Thanks for the help, Dan!

  • #4 / Nov 21, 2012 3:54pm

    Dan Decker

    7338 posts

    Hi Lisa,

    Kind of a booger…

    When you register a new member in the Control Panel, the Username field is set to a maxlength of “50”, and the username field in main Control Panel login (admin.php) is set to 50 as well. However, the maxlength of the field in the timeout pop-down is set to 32… yeah…

    A quick fix is to open /themes/javascript/compressed/cp/global_end.js

    Find line 14:

    $(function(){function a(){var a=EE.SESS_TIMEOUT-6E4,b=EE.XID_TIMEOUT-6E4,g=a<b?a:b,f=!1,d,c;c=function(){$.ajax({type:"POST",dataType:"json",url:EE.BASE+"&C=login&M=refresh_xid",success:function(a){$("input[name='XID']").val(a.xid);EE.XID=a.xid;setTimeout(c,b)}})};d=function(){var a='<form><div id="logOutWarning"<label for="username">'+EE.lang.username+'</label>: <input type="text" id="log_backin_username" name="username" value="" size="35" dir="ltr" id="username" maxlength="32"  />     <label for="password">'+

    Change:

    id="username" maxlength="32"

    To:

    id="username" maxlength="50"

    That will make it consistent throughout the Control Panel.

    Sorry for the confusion, now off to file this as a bug...

    Is there anything else I can assist you with?

    Cheers,

  • #5 / Nov 22, 2012 12:10pm

    Lisa E

    124 posts

    Awesome, no this is perfect, thanks!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases