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

Thomas Plessis t.plessis at totemnumerique.com
Wed Nov 23 12:25:11 CET 2011


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


More information about the FLOW3-general mailing list