Generate New Password
";
echo "alert('PHP mailing is currently disabled. Please adjust the settings in mapbender.conf.');";
echo "window.close();";
echo "";
}
else {
$logged_user_name = Mapbender::session()->get("mb_user_name");
$logged_user_id = Mapbender::session()->get("mb_user_id");
$admin = new administration();
$upd = false;
if ($_POST["sendnew"]) {
if ($_POST["username"] && $_POST["email"]) {
$id = $admin->getUserIdByUserName($_POST["username"]);
$mailAddressMatch = (strtolower($admin->getEmailByUserId($id)) == strtolower($_POST["email"])) && ($_POST["email"] != '');
$user_id = $id;
if ($user_id && $mailAddressMatch) {
$upd=true;
}
else {
echo "Either your username could not be found or you have registered another or no mail address.
";
}
}
else {
echo "Please fill in your username and mail address.