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

Customize cPanel login page

Discussion in 'User Experience' started by esharaf, Jan 23, 2012.

  1. esharaf

    esharaf New Member

    Joined:
    Jan 23, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    i need to know how to customize cpanel login page or where can i find it in system?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,288
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, TX
    This can currently be customized by way of copying /usr/local/cpanel/base/unprotected/cpanel to /usr/local/cpanel/base/unprotected/yourtheme replacing yourtheme with what you want to name your login theme. You edit the HTML and then in Tweak Settings set the login theme to the theme you just made.

    Since this is existing functionality and not a request for new functionality, I am moving this out of the feature request forum.

    Root access and knowledge of SSH or SFTP is required to do this modification.
     
  3. esharaf

    esharaf New Member

    Joined:
    Jan 23, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I need to put a script generate captache inside webmail Login Page so after user enters wrong password 3 times , i reguried him to type this captache also to login , how can i do that?
     
  4. Kent Brockman

    Kent Brockman Active Member

    Joined:
    Jan 20, 2008
    Messages:
    1,064
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Buenos Aires, Argentina
    hehe, I'd rather include the CAPTCHA from the beggining, as if the "user" enters their login info incorrectly more than 3 times, you may be rather under bot attack.
     
  5. esharaf

    esharaf New Member

    Joined:
    Jan 23, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    ok i need a code to apply that can u provide me with working one
     
  6. PCZero

    PCZero Member

    Joined:
    Dec 13, 2003
    Messages:
    354
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Earth
    captchas suck. they provide VERY little added security at all.
     
  7. Metralha

    Metralha New Member

    Joined:
    Apr 22, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi. This in my first post so please be patient with me.. :D

    I have done like cPanelDavidG said and after editing the main.tmpl and login.tmpl I managed to successfully create my custom pages (WHM, cPanel and Webmail).

    But I still have a little problem when entering a wrong username or password. In this case I am redirect to :2095/login/ but the "Invalid Login" messages doesn't show. On the other hand the Logout message is ok.

    In login.tmpl there is this piece of code:

    SET shownotice = logout || msg_code;
    SET notice_message = msg_code
    ? (login_messages.$msg_code || locale.maketext('An authorization error occurred. Please try again.') )
    : locale.maketext('You have logged out.')
    ;

    And I think that msg_code is not being set somehow. I am not using js-min/login.js I am just redirecting my form like this:

    <form id="login_form" action="/login/" method="post" id="login_form" target="[% login_target %]">

    In case of sucess or logout there is no problem but in cases of invalid login I can't show to users the reason why.

    Can anyone help me with this one?

    (I've searched for solutions but didn't found one)
     
  8. Metralha

    Metralha New Member

    Joined:
    Apr 22, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Is there any other way of doing this? Like create my own login page in PHP and redirected to cpanel or webmail? But in case of failure how can I return it to my page? I already tried has explained where http://docs.cpanel.net/twiki/pub/AllDocumentation/TrainingResources/TrainingSlides07/Customizing_cPanel.pdf but it does not redirect to my page. And also tried failurl like explained where WLScripting.com » cPanel, WHM, Webmail login script but it stills does not redirect to my page.

    I really do need help on this one.
     
  9. luis rolando

    luis rolando New Member

    Joined:
    Jun 1, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I would like to know how I can change the skin of cpanel login, webmail, whm
    I have the service through a hosting
    I am a reseller
    I have access only to / home on the server, but I didn´t see the path / usr / local / cpanel / base / unprotected /
    how I can make the changes? at least be able to change only the logo!
    thanks a lot!
     

Share This Page