mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
* github is weird
This commit is contained in:
parent
56a01e1e64
commit
b37bd5f0ae
@ -17,11 +17,13 @@ if(empty($hash)) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$res = $db->query('SELECT `email_hash` FROM `accounts` WHERE `email_hash` = ' . $db->quote($hash));
|
||||||
if(!$res->rowCount()) {
|
if(!$res->rowCount()) {
|
||||||
note("Your email couldn't be verified. Please contact staff to do it manually.");
|
note("Your email couldn't be verified. Please contact staff to do it manually.");
|
||||||
}
|
}
|
||||||
else
|
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.');
|
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);
|
$hash = md5(generateRandomString(16, true, true) . $email);
|
||||||
$new_account->setCustomField('email_hash', $hash);
|
$new_account->setCustomField('email_hash', $hash);
|
||||||
|
|
||||||
|
$verify_url = getLink('account/confirm_email/' . $hash);
|
||||||
$server_name = $config['lua']['serverName'];
|
$server_name = $config['lua']['serverName'];
|
||||||
|
|
||||||
$body_plain = $twig->render('mail.account.verify.plain.html.twig', array(
|
$body_plain = $twig->render('mail.account.verify.plain.html.twig', array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user