Правки namespace

This commit is contained in:
CORP\phedor 2018-04-13 17:59:57 +03:00
parent ee06f1febb
commit 524b27936a
39 changed files with 141 additions and 120 deletions

View file

@ -19,8 +19,11 @@ class Login extends Filter
{
const SESSION_BROWSER_SIGN_SECRET = '@w3dsju45Msk#';
const SESSION_BROWSER_SIGN_KEYNAME = 'session.app.browser.sign';
public $mode = 'ajax';
public $user;
public $role;
public $whitelist;
function __construct($processor, $role, $whitelist = []) {
parent::__construct($processor);
@ -63,7 +66,7 @@ class Login extends Filter
if ($result) {
$temp = md5($result->getString('password') . $result->getString('login') . $result->getString('sid'));
if ($password == $temp) {
$this->enter($db, $result);
$this->enter($result);
return true;
}
}