Start your All-Access Pass to unlock this challenge
Challenge 1 / 2
Our controller takes the user as a non-nullable argument:
public function __invoke(
#[CurrentUser]
User $user,
// ...
): Response {
We never added an #[IsGranted] or an access_control rule - yet visiting /change-password while logged out sends us straight to the login page. Why?
Skip challenges and go to theNext Chapter