mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
Allow users to verify their email in myaccount.php
Even if they arent forced to verify email during registration. If they change their email in the settings later, the verification is lost. Todo: Add a reward for first-time verification.
This commit is contained in:
@@ -35,11 +35,12 @@ if (isset($_GET['success']) === true && empty($_GET['success']) === true) {
|
||||
} else {
|
||||
if (empty($_POST) === false && empty($errors) === true) {
|
||||
$update_data = array(
|
||||
'email' => $_POST['new_email'],
|
||||
'email' => $_POST['new_email']
|
||||
);
|
||||
|
||||
$update_znote_data = array(
|
||||
'flag' => getValue($_POST['new_flag']),
|
||||
'active_email' => '0'
|
||||
);
|
||||
|
||||
user_update_account($update_data);
|
||||
|
Reference in New Issue
Block a user