mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
First public release of MyAAC
This commit is contained in:
25
system/pages/account.php
Normal file
25
system/pages/account.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Account confirm mail
|
||||
*
|
||||
* @package MyAAC
|
||||
* @author Slawkens <slawkens@gmail.com>
|
||||
* @copyright 2017 MyAAC
|
||||
* @version 0.0.1
|
||||
* @link http://my-aac.org
|
||||
*/
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
$title = 'Account';
|
||||
|
||||
if($action == 'confirm_email')
|
||||
{
|
||||
$res = $db->query('SELECT email_hash FROM accounts WHERE email_hash = ' . $db->quote($_GET['v']));
|
||||
if(!$res->rowCount())
|
||||
echo '<div class="note">Your email couldn\'t be verified. Please contact staff to do it manually.</div>';
|
||||
else
|
||||
{
|
||||
$db->update('accounts', array('email_verified' => '1'), array('email_hash' => $_GET['v']));
|
||||
echo '<div class="success">You have now verified your e-mail, this will increase the security of your account. Thank you for doing this.</div>';
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user