Skip to content

CakePHP Authentication 4.1.0

Latest

Choose a tag to compare

@dereuromark dereuromark released this 22 Apr 11:31
ed41893

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 existing getLoginRedirect() 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