Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function loginAction()
- {
- $logger = new Zend_Log();
- $attempt = 3;
- if ($this->getRequest()->isPost() )
- {
- $username = $this->getRequest()->getPost('name');
- $password = $this->getRequest()->getPost('password');
- $authObject = new Application_Model_Authenticate();
- $loginStatus = $authObject->checkCreds($username, $password);
- $this->view->auth = $loginStatus;
- $this->view->nameValue = $username;
- if (!$this->view->auth && $attempt == 3){
- $logger->emerg('Logged in 3 times password incorrect');
- }
- }else{
- $logger->info('Login attempt without any creds');
- }
- }
Add Comment
Please, Sign In to add comment