src/Controller/Component/UserToolComponent.php
protected function _afterLogin($user, array $options) {
		$event = $this->dispatchEvent('User.afterLogin', [
			'user' => $user,
			'options' => $options
		]);
		if ($event->isStopped()) {
			return $event->result;
		}

		$Auth = $this->_getAuthObject();
		$Auth->setUser($user);

		if ($options['successRedirectUrl'] === null) {
			$options['successRedirectUrl'] = $Auth->redirectUrl();
		}

		$this->handleFlashAndRedirect('success', $options);

		return true;
	}
protected function _afterLogin($user, array $options) {
		$event = $this->dispatchEvent('User.afterLogin', [
			'user' => $user,
			'options' => $options
		]);
		if ($event->isStopped()) {
			return $event->result;
		}

		$Auth = $this->_getAuthObject();
		$Auth->setUser($user);

		if ($options['successRedirectUrl'] === null) {
			$options['successRedirectUrl'] = $Auth->redirectUrl();
		}

		$this->handleFlashAndRedirect('success', $options);

		return true;
	}
protected function _afterLogin ( $ user , array $ options ) { $ event = $ this -> dispatchEvent ( 'User.afterLogin' , [ 'user' => $ user , 'options' => $ options ] ) ; if ( $ event -> isStopped ( ) ) { return $ event -> result ; } $ Auth = $ this -> _getAuthObject ( ) ; $ Auth -> setUser ( $ user ) ; if ( $ options [ 'successRedirectUrl' ] === null ) { $ options [ 'successRedirectUrl' ] = $ Auth -> redirectUrl ( ) ; } $ this -> handleFlashAndRedirect ( 'success' , $ options ) ; return true ; }
Internal callback to handle the after login procedure.

@param array $user User data
@param array $options Options
@return mixed
Internal callback to handle the after login procedure .