mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
* github is weird
This commit is contained in:
parent
56a01e1e64
commit
b37bd5f0ae
@ -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.');
|
||||
}
|
||||
?>
|
||||
|
@ -160,6 +160,7 @@ if($save)
|
||||
$hash = md5(generateRandomString(16, true, true) . $email);
|
||||
$new_account->setCustomField('email_hash', $hash);
|
||||
|
||||
$verify_url = getLink('account/confirm_email/' . $hash);
|
||||
$server_name = $config['lua']['serverName'];
|
||||
|
||||
$body_plain = $twig->render('mail.account.verify.plain.html.twig', array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user