Ejemplo n.º 1
0
 /**
  * Confirm user registration
  * 
  * @return bool
  */
 public function login()
 {
     $user = $this->model->userFind(array('mail' => $this->getInputVal('mail'), 'pw' => md5($this->getInputVal('pw')), 'confirmed' => 1));
     if (!$user) {
         $this->setErrors('User not found. Wrong email or pasword');
         return false;
     }
     Ut::setUser($user);
     return true;
 }