cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
15
313
Houston, TX
cPanel Access Level
Root Administrator
i need to know how to customize cpanel login page or where can i find it in system?
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.
 

esharaf

Registered
Jan 23, 2012
3
0
51
cPanel Access Level
Root Administrator
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?
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,354
79
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
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.
 

Metralha

Registered
Apr 22, 2012
2
0
51
cPanel Access Level
Root Administrator
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)
 

Metralha

Registered
Apr 22, 2012
2
0
51
cPanel Access Level
Root Administrator
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.
 

luis rolando

Registered
Jun 1, 2012
3
0
51
cPanel Access Level
Reseller Owner
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!