Example #1
0
 public function create($array)
 {
     if (isset($array['password'])) {
         $array['password'] = md5($array['password']);
     }
     parent::create($array);
 }
Example #2
0
 /**
  * Check user
  * @param sring $username
  * @return bool
  */
 public function checkUserExist($username)
 {
     return (bool) parent::findBy(array('username' => $username));
 }