src/Controller/Component/UserToolComponent.php
protected function _handleUserBeingAlreadyLoggedIn(array $options) {
		$Auth = $this->_getAuthObject();
		if ((bool)$Auth->user()) {
			if ($options['alreadyLoggedInRedirectUrl'] === null) {
				$options['alreadyLoggedInRedirectUrl'] = $this->_getRequest()->referer();
			}
			$this->handleFlashAndRedirect('alreadyLoggedIn', $options);
		}
	}
protected function _handleUserBeingAlreadyLoggedIn(array $options) {
		$Auth = $this->_getAuthObject();
		if ((bool)$Auth->user()) {
			if ($options['alreadyLoggedInRedirectUrl'] === null) {
				$options['alreadyLoggedInRedirectUrl'] = $this->_getRequest()->referer();
			}
			$this->handleFlashAndRedirect('alreadyLoggedIn', $options);
		}
	}
protected function _handleUserBeingAlreadyLoggedIn ( array $ options ) { $ Auth = $ this -> _getAuthObject ( ) ; if ( ( bool ) $ Auth -> user ( ) ) { if ( $ options [ 'alreadyLoggedInRedirectUrl' ] === null ) { $ options [ 'alreadyLoggedInRedirectUrl' ] = $ this -> _getRequest ( ) -> referer ( ) ; } $ this -> handleFlashAndRedirect ( 'alreadyLoggedIn' , $ options ) ; } }
Handles the case when the user is already logged in and triggers a redirect
and flash message if configured for that.

@see UserToolComponent::login()
@param array $options Options
@return void
Handles the case when the user is already logged in and triggers a redirect and flash message if configured for that .