* Adjust code.
This commit is contained in:
@@ -1300,6 +1300,7 @@ class userModel extends model
|
||||
*/
|
||||
public function checkLocked($account)
|
||||
{
|
||||
if($this->session->{"{$account}.loginLocked"} and (time() - strtotime($this->session->{"{$account}.loginLocked"})) <= $this->config->user->lockMinutes * 60) return true;
|
||||
|
||||
$user = $this->dao->select('locked')->from(TABLE_USER)->where('account')->eq($account)->fetch();
|
||||
if(empty($user)) return false;
|
||||
|
||||
Reference in New Issue
Block a user