* github is weird

This commit is contained in:
slawkens1
2017-11-12 21:56:47 +01:00
parent 56a01e1e64
commit b37bd5f0ae
2 changed files with 3 additions and 0 deletions

View File

@@ -17,11 +17,13 @@ if(empty($hash)) {
return;
}
$res = $db->query('SELECT `email_hash` FROM `accounts` WHERE `email_hash` = ' . $db->quote($hash));
if(!$res->rowCount()) {
note("Your email couldn't be verified. Please contact staff to do it manually.");
}
else
{
$db->update('accounts', array('email_verified' => '1'), array('email_hash' => $hash));
success('You have now verified your e-mail, this will increase the security of your account. Thank you for doing this.');
}
?>