@@ -42,7 +42,7 @@ if ($found==5 && $_POST["url"]=="") {
if(count($error)==0){
sleep(5);// Let create some artificial waiting for the one who want to restore many accounts ...
// Does it exist?
$already=@mysql_fetch_assoc(mysql_query("SELECT id FROM accounts WHERE jabberid='".addslashes($_POST["login"]."@jabber.lqdn.fr")."';"));
$already=@mysql_fetch_assoc(mysql_query("SELECT * FROM accounts WHERE jabberid='".addslashes($_POST["login"]."@jabber.lqdn.fr")."';"));
if(!$already){
$error[]=sprintf(_("This account doesn't exist, or have been permanently destroyed. <a href=\"%s\">Click here to create a new account with this login</a>."),"create.php");
}
...
...
@@ -52,8 +52,23 @@ if ($found==5 && $_POST["url"]=="") {
$mail->Subject=sprintf(_("Password lost on %s"),$domain);
$mail->Body=sprintf(_("You receive this email because you created an Jabber Chat account on %s and lost your pasword.\n\nPlease click the link below to reset your password.\n\n%s\n\nIf you didn't asked for this password reminder, please ignore this message or contact us.\n\nThanks a lot for your understanding.\nRegards\nThe Jabber Chat Team\n"),$domain,$rooturl."/recover/".$already["id"]."/".$key);
if(!$mail->send()){
$error[]=_("The email has NOT been sent, please try again later or contact us");
}else{
$info[]=_("An email has been sent to the address you entered. Please check your mail and click the link to reset your password");