Compare commits

..

1 Commits

Author SHA1 Message Date
212b32c4ab
implement redirect after login
Some checks failed
mapguesser/pipeline/pr-develop There was a failure building this commit
2023-04-16 17:40:49 +02:00
2 changed files with 1 additions and 7 deletions

View File

@ -29,12 +29,6 @@ services:
MYSQL_DATABASE: 'mapguesser' MYSQL_DATABASE: 'mapguesser'
MYSQL_USER: 'mapguesser' MYSQL_USER: 'mapguesser'
MYSQL_PASSWORD: 'mapguesser' MYSQL_PASSWORD: 'mapguesser'
adminer:
image: adminer:4.8.1-standalone
ports:
- 9090:8080
environment:
- ADMINER_DEFAULT_SERVER=mariadb
mail: mail:
image: marcopas/docker-mailslurper:latest image: marcopas/docker-mailslurper:latest
ports: ports:

View File

@ -270,7 +270,7 @@ class LoginController
{ {
if ($this->request->user() !== null) { if ($this->request->user() !== null) {
$this->deleteRedirectUrl(); $this->deleteRedirectUrl();
return new JsonContent(['redirect' => ['target' => '/' . $this->redirectUrl]]); return new Redirect($this->redirectUrl, IRedirect::TEMPORARY);
} }
$user = $this->userRepository->getByEmail($this->request->post('email')); $user = $this->userRepository->getByEmail($this->request->post('email'));