Increased Login Page Customization

From WiDirect
Jump to: navigation, search

The WiDirect includes some of the login page branding directly in the login page PHP files by default to make branding easier. To get full control over the look and feel of the login page, this extra branding code can be removed. To remove this extra code open the login page PHP file with this command:

	sudo emacs /root/AWICP/www/portal/login/index.php

Scroll down to find this line:

	$showLoginText = 1;

On that line change the 1 to a 0, and then exit the emacs text editor. The next step will be to modify the login template. The following code will display the default login template when the regular login branding is disabled:

<link rel="stylesheet" href="/portal/branding//default//style.css" type="text/css">
<body background="/portal/branding//default//images/bg_body.jpg">
<div id="ctr" align="center">  <div class="login">    <div class="login-form">      <img src="/portal/images/login.gif" alt="Login">
<div class="form-block">
<div class="login-text">      
<p>Welcome to Network Network</p>
<p>Please enter a valid username and password to access the system.</p>
<br><h3>Need an account?</h3> 
<a href="/portal/register/?ssid=%%PROFILE%%&mac=%%MAC%%&ap=%%AP%%&url=%%URL%%">Click here to register</a></h3>
<div class="clr"></div><p><A  href="/portal/forgot/?ssid=%%PROFILE%%&mac=%%MAC%%&ap=%%AP%%&url=%%URL%%">Forgot Password?</A></p><p><A  href="/portal/changepassword/?ssid=%%PROFILE%%&mac=%%MAC%%&ap=%%AP%%">Change Password</A></p>      </div>