mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
Possibility to reward users with shop points if they verify their email
Also generates a new activation key after they have verified their email in-case they change their email and guess the activation link for their fake email. Also removes the given points until they verify their email again if they change their email.
This commit is contained in:
@@ -43,6 +43,11 @@ if (isset($_GET['success']) === true && empty($_GET['success']) === true) {
|
||||
'active_email' => '0'
|
||||
);
|
||||
|
||||
// If he had previously verified his email address, remove the previously aquired bonus points
|
||||
if ($user_znote_data['active_email'] > 0) {
|
||||
$update_znote_data['points'] = $user_znote_data['points'] - $config['mailserver']['verify_email_points'];
|
||||
}
|
||||
|
||||
user_update_account($update_data);
|
||||
user_update_znote_account($update_znote_data);
|
||||
header('Location: settings.php?success');
|
||||
|
Reference in New Issue
Block a user