[FLOW3-general] Logout does not work since upgrade 1.01?

Thomas Plessis t.plessis at totemnumerique.com
Thu Nov 24 16:35:06 CET 2011


any ideas about this?

regards,

Thomas Plessis
Développeur multimédia
--
TOTEMnumerique
9, Place St Étienne
31000 Toulouse
T. 05 61 14 64 54
F. 05 61 14 64 55

Le 23 nov. 2011 à 12:25, Thomas Plessis a écrit :

> Hi guys,
> 
> I've upgrade my FLOW3 project this morning with the new release 1.01, and now the logout method from authenticationManager does not work… it's impossible to logout, and i've no errors or warnings. 
> 
> Here is my LoginController :
> 
> class LoginController extends \Totem\Lewin\Controller\AbstractBaseController {
> 
> 	/**
> 	 * @FLOW3\Inject
> 	 * @var \TYPO3\FLOW3\Security\Authentication\AuthenticationManagerInterface
> 	 */
> 	protected $authenticationManager;
> 
> 	/**
> 	 * Show login poage
> 	 *
> 	 * @return string
> 	 */
> 	public function indexAction() {
> 
> 	}
> 
> 	/**
> 	 * Authenticates an account by invoking the Provider based Authentication Manager.
> 	 *
> 	 * On successful authentication redirects to the index page, otherwise returns
> 	 * to the login screen.
> 	 *
> 	 * @return void
> 	 */
> 	public function authenticateAction() {
> 		try {
> 			$this->authenticationManager->authenticate();
> 			$this->redirect('index', 'Home');
> 		} catch (\TYPO3\FLOW3\Security\Exception\AuthenticationRequiredException $exception) {
> 			$this->addFlashMessage('Wrong username or password.');
> 			throw $exception;
> 		}
> 	}
> 
> 	/**
> 	 * Logout user from website
> 	 *
> 	 * @return void
> 	 */
> 	public function logoutAction() {
> 		$this->authenticationManager->logout();
> 		$this->addFlashMessage('Successfully logged out.');
> 		$this->redirect('index', 'Home');
> 	}
> }
> 
> regards,
> 
> Thomas Plessis
> Développeur multimédia
> --
> TOTEMnumerique
> 9, Place St Étienne
> 31000 Toulouse
> T. 05 61 14 64 54
> F. 05 61 14 64 55
> _______________________________________________
> FLOW3-general mailing list
> FLOW3-general at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general



More information about the FLOW3-general mailing list