" . getMLText("login") . "\n");
			UI::htmlEndPage();
	return;
}
if (isset($_POST["hash"])) {
	$hash = $_POST["hash"];
}
if (isset($_POST["newpassword"])) {
	$newpassword = $_POST["newpassword"];
}
if (isset($_POST["newpasswordrepeat"])) {
	$newpasswordrepeat = $_POST["newpasswordrepeat"];
}
if (empty($newpassword) || empty($newpasswordrepeat) || $newpassword != $newpasswordrepeat) {
	_printMessage(getMLText("password_mismatch_error_title"),	"".getMLText("password_mismatch_error")."
\n");
	exit;
}
$user = $dms->checkPasswordRequest($hash);
if($user) {
	$user->setPwd(md5($newpassword));
	$dms->deletePasswordRequest($hash);
}
_printMessage(getMLText("change_password"), "".getMLText("change_password_message")."
");
exit;
?>