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