Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. public function loginProcessAction()
  2. {
  3. $email = $this->_getParam('email' , "");
  4. /* @var $mapperEmail Db_Mapper_Email*/
  5. $mapperEmail = RCS_Resource::get('Db_Mapper_Email');
  6. $emailId = $mapperEmail->findByEmail($email);
  7.  
  8. $password = $this->_getParam('password' , "");
  9. $mapperUser = RCS_Resource::get('Db_Mapper_User_Custom');
  10. $user = $mapperUser->findByEmailID($emailId[0]->getId());
  11.  
  12. var_dump($emailId);
  13. var_dump($user);
  14. die;
  15. if(count($user) == 0 ){
  16. $this->_helper->redirector->gotoSimple('index','login',null, array('error' => "No User Found"));
  17.  
  18.  
  19. }elseif($password != $user->getPassword()){
  20. $this->_helper->redirector->gotoSimple('index','login',null, array('error' => "Incorrect Password"));
  21.  
  22. }else{
  23. $this->_helper->redirector->gotoSimple('list','user');
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement