Extension talk:AuthSymfony
Check for 'is_active' Column
editJust add
$activeCol = 'is_active';
to your statics under
// Login columns
and modify function authenticate to look like this:
public function authenticate($username, $password)
{
$user = $this->getUser($username);
if ($user)
{
$isactive = static::$activeCol ? $user[static::$activeCol] : static::$isactive;
if($isactive == 1)
{
$algorithm = static::$algorithmCol ? $user[static::$algorithmCol] : static::$algorithm;
$salt = static::$saltCol ? $user[static::$saltCol] : static::$salt;
return $algorithm($salt . $password) == $user[static::$passwordCol]
&&
$this->hasLoginCredential($user['username']);
}
}
return false;
}