Skip to content
Snippets Groups Projects
Commit 18e63cee authored by Moreau Elise's avatar Moreau Elise
Browse files

redirect to home when create an user

parent 92e9e609
No related branches found
No related tags found
No related merge requests found
...@@ -52,10 +52,9 @@ class CreateUserAction extends UserAction ...@@ -52,10 +52,9 @@ class CreateUserAction extends UserAction
$this->logger->info("User has been created."); $this->logger->info("User has been created.");
return $this->twig->render( return $this->response
$this->response, "/user/user_profile.twig", ->withHeader('Location', '/account')
["user" => $user, "id" => $user->getId()] ->withStatus(302);
);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment