--- html/lostpwd.php.orig 2011-11-25 15:43:10.000000000 +0100 +++ html/lostpwd.php 2011-11-25 15:50:22.000000000 +0100 @@ -65,6 +65,7 @@ if( $account_info = checkLogin( $_POST['username'], $lcServerID, null, true ) ){ $type = array_key_exists('type', $account_info) ? $account_info['type'] : 0; $email = array_key_exists('email', $account_info) ? $account_info['email'] : ''; + $_POST['username'] = array_key_exists('login', $account_info) ? $account_info['login'] : $_POST['username']; } if( ! $account_info ){