Added a hint about potentially wrong passwords to the error message

pull/1/head
root 18 years ago
parent 5bd31d33e9
commit 8dae9e3ee8

@ -78,6 +78,7 @@
showfooter(); showfooter();
exit; exit;
} }
} }
if($id == 1) if($id == 1)
@ -86,7 +87,7 @@
(`password`=old_password('$password') or `password`=sha1('$password') or `password`=password('$password'))"; (`password`=old_password('$password') or `password`=sha1('$password') or `password`=password('$password'))";
if(mysql_num_rows(mysql_query($query)) <= 0) if(mysql_num_rows(mysql_query($query)) <= 0)
{ {
$_SESSION['_config']['errmsg'] = _("I'm sorry, I couldn't match your login details to your certificate to an account on this system."); $_SESSION['_config']['errmsg'] = _("I'm sorry, I couldn't match your login details (password) to your certificate to an account on this system.");
$id = 0; $id = 0;
} else { } else {
$query = "insert into `tverify` set `memid`='$memid', `URL`='$URL', `CN`='$CN', `created`=NOW()"; $query = "insert into `tverify` set `memid`='$memid', `URL`='$URL', `CN`='$CN', `created`=NOW()";

Loading…
Cancel
Save