thomson9292
New Member
- Joined
- Feb 28, 2017
- Messages
- 97
- Solutions
- 1
- Reaction score
- 2
I set true here:
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
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:
'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: