Change your way: if bad login stay in same page ad show message error and if login right, redirect where you want: try to change your action controller so.
Change your way: if bad login stay in same page ad show message error and if login right, redirect where you want: try to change your action controller so: public function loginAction() { $form = new Form_Login(); if ($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getPost())) { //stuff check login $loginResult = //call method check, if bad return message error if (true === $loginResult) { //login success redirect where you want $this->_helper->redirector('index', 'index'); } else { // auth failed foreach ($loginResult as $field => $message) { $form->getElement($field)->addError($message); } } } $this->view->form = $form; }.
The same issue as here down below, now the url stays at token. Phtml when a user is found als the source is the same but the html output not – Hafid Dec 2 at 19:29.
Try to leave form action empty, so you'll get the request in tokenAction. In tokenAction check if user exist and all that stuff, then if true redirect to login action $this->_helper->redirector->gotoRoute( array( // route like: 'controller' => 'login' 'action' => 'login' ), 'routenameifyouwant' ).
I tried this but now it the url stays at token. Phtml and the source is also from token. Phtml but the html output is login when user is found – Hafid Dec 2 at 19:24.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.