Improvements
-
Added
AuthenticationComponent::redirectAfterLogin()helper to make the safe post-login redirect path the obvious one. It resolves the validated local redirect target via the existinggetLoginRedirect()logic and falls back to the provided default, returning the controller redirect response directly (#787).if ($result->isValid()) { return $this->Authentication->redirectAfterLogin('/dashboard'); }
Full Changelog: 4.0.1...4.1.0