Ejemplo n.º 1
0
 /**
  * Checks to see if this account is security locked
  *
  * @param $username
  *
  * @param $ip_address
  *
  * @return bool
  */
 public function IsSecurityLocked($username, $ip_address)
 {
     if ($this->ValidUsername($username)) {
         $class = new Security();
         if ($class->BruteProtection($this->MatchUsername($username), $ip_address)) {
             return true;
         }
     }
     return false;
 }
Ejemplo n.º 2
0
 /**
  * What we do on construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->database = new DatabaseSecurityEmail();
 }