forked from science-ation/science-ation
If the email is already validated (like if they clicked the link more than once) just tell them thats the case instead of telling them its invalid (which it is)
This commit is contained in:
parent
a463b591cc
commit
6d189a907f
@ -33,7 +33,13 @@
|
||||
echo happy(i18n("Thank you for validating your email address"));
|
||||
mysql_query("UPDATE accounts SET email=pendingemail, pendingemail=NULL, pendingemailcode=NULL WHERE id='$id'");
|
||||
} else {
|
||||
echo error(i18n("An error occured validating your email address"));
|
||||
//see if its already confirmed
|
||||
$q=mysql_query("SELECT * FROM accounts WHERE email='$email' AND id='$id'");
|
||||
if(mysql_num_rows($q)) {
|
||||
echo notice(i18n("Your email address has already been validated"));
|
||||
} else {
|
||||
echo error(i18n("An error occured validating your email address"));
|
||||
}
|
||||
}
|
||||
|
||||
send_footer();
|
||||
|
Loading…
Reference in New Issue
Block a user