Ability to customize the look of the main login page.

Version 1.20.4

Feature
Finished

If you want to change the login screen for the main DirectAdmin login page, simply create the html file you want in: /usr/local/directadmin/data/templates/login.html And it will be shown instead of the built in page. To restore the default login page, just remove that file. Form Values: username password referer : where you want to be taken after the login Optional Values: FAIL_URL : where you should be forwarded if the login fails. LOGOUT_URL: where you should be forwarded when you logout. Tokens: |REFERER| : where the login is trying to go. |FAILEDLOGIN| : text that you've define with |?FAILEDLOGIN=your text|. It will be empty ("") under most circumstances, so you can place it where you want the error message to be shown. You *MUST* include : |?FAILEDLOGIN=Your own login failed text| before you call the |FAILEDLOGIN| token. The token is filled with "" unless a failed login has occured. EXAMPLE: /usr/local/directadmin/data/templates/login.html ################################################## |?FAILEDLOGIN=<h1>Wrong Username or Password!!</h1>| <html> <head><title>DirectAdmin Login Page</title></head> <body> |FAILEDLOGIN| Enter your username and password<br> <form action="/CMD_LOGIN" method="POST"> <input type=hidden name=referer value="|REFERER|"> Username: <input type=text name=username autocapitalize="none"><br> Password: <input type=password name=password><br> <input type=submit value="Login"> </form> |*if LOST_PASSWORD="yes"| <a href="/CMD_LOST_PASSWORD">Forgot your password?</a> |*endif| </body> </html> ##################################################

Interested to try DirectAdmin? Get a 30-day Free Trial!