• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC Activate user account via email znote acc

thomson9292

New Member
Joined
Feb 28, 2017
Messages
97
Solutions
1
Reaction score
2
I set true here:
Code:
'register' => true, // Send activation mail

When user enter activation link there is information that account is activated but user still can't enter his account.

I found this part in users.php
Code:
// Checks if user is activated (Not in use atm)
function user_activated($username) {
    $username = sanitize($username);
    // Deprecated, removed from DB.
    return false;
}

Question is - does the activation account system works in default or I have to set it by my own?

edit. I also have this error:

Illegal string offset 'active' in /var/www/test/public_html/register.php on line 120

Code:
if ($user !== false) {
        $user = $user['id'];
        $active = $user['active']; // line 120
        // Enable the account to login
        if ($active == 0) {
            mysql_update("UPDATE `znote_accounts` SET `active`='1' WHERE `id`='$user' LIMIT 1;");
        }
 
Last edited:
Back
Top