diff --git a/www/verify.php b/www/verify.php index 2fee994..88c53e5 100644 --- a/www/verify.php +++ b/www/verify.php @@ -1,5 +1,5 @@ + Copyright (C) 2004-2006 by Duane Groth This file is part of CAcert. @@ -46,7 +46,7 @@ mysql_query("update `email` set `attempts`='$row[attempts]' where `id`='$emailid'"); } - $query = "select * from `email` where `id`='$emailid' and `hash`='$hash' and hash!='' and deleted=0 and `attempts` <= 6"; + $query = "select * from `email` where `id`='$emailid' and `hash`='$hash' and hash!='' and deleted=0"; $res = mysql_query($query); if(mysql_num_rows($res) <= 0) { @@ -94,7 +94,7 @@ { $row = mysql_fetch_assoc($res); $row[attempts]++; - if($row[attempts] == 4) + if($row[attempts] >= 6) { $query = "update `domains` set `hash`='', `attempts`='$row[attempts]', `deleted`=NOW() where `id`='$domainid'"; showheader(_("Error!"), _("Error!")); @@ -132,9 +132,9 @@ echo ""; echo ""; echo ""; - echo "
\n"; + echo "
\n"; echo "
\n"; - echo "\n"; + echo "\n"; } showfooter(); exit;