Many users want a quick and easy way to change their Email password.
This patch allows you to change the login form of SquirrelMail so a 'Change Password' button appears.
Example:
- cd /var/www/html/squirrelmail/src
- vi login.php
- Look for the following
Code:
<center>'. addSubmit(_("Login"))
- Replace the line with:
Code:
'<center>'. addSubmit(_("Login")) .'<INPUT TYPE=button VALUE="Change Password" onClick="window.location.href=\'http://' . $_SERVER['HTTP_HOST'] . ':2222/CMD_CHANGE_EMAIL_PASSWORD\'"></center>',
- Save the file and exit.
Reload the Webmail system and you should be set.