HOWTO: Log on SquirrelMail using only username (no domain)
Posted: 2004-10-15 21:47
1) navigate to drive:\path\to\squirrelmail\src
2) Locate redirect.php
3) Open it with wordpad (dreamweaver if you've got it)
4) Do a find on
That should be over something that looks like this
Below the } add this
This will check to see if the user had the @domain.net in his username, if he did it will do nothing, but if he didn't, it will add the @domain.net to the end of it before checking / loggin in.
I took the freedom to edit this post a bit and moving it to howto's / Martin
2) Locate redirect.php
3) Open it with wordpad (dreamweaver if you've got it)
4) Do a find on
Code: Select all
/* Verify that username and password are correct. */
Code: Select all
if ($force_username_lowercase) {
$login_username = strtolower($login_username);
}
Code: Select all
$at = array("@");
foreach ($at as $val) {
if (stristr(trim($login_username),$val)) {
$domains += 1;
}
}
if($domains < 1){
$login_username .= "@yourdomain.net";
}
I took the freedom to edit this post a bit and moving it to howto's / Martin