#125 include email_confirmed in session user
This commit is contained in:
parent
dca8e12f57
commit
b7637f426c
@ -14,8 +14,9 @@ class User {
|
||||
public $rights = NULL;
|
||||
public $locale = NULL;
|
||||
public $base_url = NULL;
|
||||
public $email_confirmed = NULL;
|
||||
|
||||
public function __construct($id, $username, $email, $creationDate, $lastLoginDate, $lastLoginIP, $passwordWrongCount, $rights, $locale, $base_url){
|
||||
public function __construct($id, $username, $email, $creationDate, $lastLoginDate, $lastLoginIP, $passwordWrongCount, $rights, $locale, $base_url, $email_confirmed){
|
||||
$this->id = $id;
|
||||
$this->username = $username;
|
||||
$this->email = $email;
|
||||
@ -26,5 +27,6 @@ class User {
|
||||
$this->rights = $rights;
|
||||
$this->locale = $locale;
|
||||
$this->base_url = $base_url;
|
||||
$this->email_confirmed = $email_confirmed;
|
||||
}
|
||||
}
|
||||
@ -32,7 +32,8 @@ class security {
|
||||
0,
|
||||
NULL,
|
||||
$row[\SYSTEM\SQL\system_user::FIELD_LOCALE],
|
||||
\SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL));
|
||||
\SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL),
|
||||
$row[\SYSTEM\SQL\system_user::FIELD_EMAIL_CONFIRMED]);
|
||||
if(isset($locale)){
|
||||
\SYSTEM\locale::set($locale);}
|
||||
\SYSTEM\SQL\SYS_SECURITY_UPDATE_LASTACTIVE::QI(array($row[\SYSTEM\SQL\system_user::FIELD_ID]));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user