mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
Session prefix, if you are hosting multiple sites, make the session name different to avoid conflict.
This commit is contained in:
@@ -30,10 +30,10 @@ if (empty($_POST) === false) {
|
||||
if ($login === false) {
|
||||
$errors[] = 'Username and password combination is wrong.';
|
||||
} else {
|
||||
$_SESSION['user_id'] = $login;
|
||||
setSession('user_id', $login);
|
||||
|
||||
// if IP is not set (etc acc created before Znote AAC was in use)
|
||||
$znote_data = user_znote_account_data($_SESSION['user_id']);
|
||||
$znote_data = user_znote_account_data($login);
|
||||
if ($znote_data['ip'] == 0) {
|
||||
$update_data = array(
|
||||
'ip' => ip2long(getIP()),
|
||||
|
Reference in New Issue
Block a user