added field locale to $_SESSION
This commit is contained in:
parent
9240d77127
commit
9419d126eb
@ -88,7 +88,8 @@ class Security {
|
|||||||
time(),
|
time(),
|
||||||
getenv('REMOTE_ADDR'),
|
getenv('REMOTE_ADDR'),
|
||||||
0,
|
0,
|
||||||
NULL);
|
NULL,
|
||||||
|
$row[\SYSTEM\DBD\UserTable::FIELD_LOCALE]);
|
||||||
|
|
||||||
if(isset($locale)){
|
if(isset($locale)){
|
||||||
\SYSTEM\locale::set($locale);}
|
\SYSTEM\locale::set($locale);}
|
||||||
|
|||||||
@ -12,8 +12,9 @@ class User {
|
|||||||
public $lastLoginIP = NULL;
|
public $lastLoginIP = NULL;
|
||||||
public $passwordWrongCount = NULL;
|
public $passwordWrongCount = NULL;
|
||||||
public $rights = NULL;
|
public $rights = NULL;
|
||||||
|
public $locale = NULL;
|
||||||
|
|
||||||
public function __construct($id, $username, $email, $creationDate, $lastLoginDate, $lastLoginIP, $passwordWrongCount, $rights){
|
public function __construct($id, $username, $email, $creationDate, $lastLoginDate, $lastLoginIP, $passwordWrongCount, $rights, $locale){
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
$this->username = $username;
|
$this->username = $username;
|
||||||
$this->email = $email;
|
$this->email = $email;
|
||||||
@ -22,5 +23,6 @@ class User {
|
|||||||
$this->lastLoginIP = $lastLoginIP;
|
$this->lastLoginIP = $lastLoginIP;
|
||||||
$this->passwordWrongCount = $passwordWrongCount;
|
$this->passwordWrongCount = $passwordWrongCount;
|
||||||
$this->rights = $rights;
|
$this->rights = $rights;
|
||||||
|
$this->locale = $locale;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user