* Adjust code.
This commit is contained in:
@@ -1161,7 +1161,7 @@ class userModel extends model
|
||||
{
|
||||
if(!$user) return false;
|
||||
|
||||
// $this->cleanLocked($user->account);
|
||||
$this->cleanLocked($user->account);
|
||||
|
||||
/* Authorize him and save to session. */
|
||||
$user->rights = $this->authorize($user->account);
|
||||
|
||||
+1
-1
@@ -477,6 +477,6 @@ function su($account)
|
||||
$user = $userModel->getByID($account);
|
||||
if($user) return $userModel->login($user);
|
||||
|
||||
//$user = $userModel->identify($account, $user->password);
|
||||
$user = $userModel->identify($account, $user->password);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user