Skip to content

Commit

Permalink
When loading "loginAfterlinkSent" and user LoggedIn, try redirect to …
Browse files Browse the repository at this point in the history
…dashboard.
  • Loading branch information
paaton authored and tomtomklima committed Nov 23, 2024
1 parent 5e6b46a commit 1d71e15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Application/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public function addRoutesInto(App $app): App
->setName('sendLoginEmail');

$app->get('/loginAfterLinkSent', UserController::class . '::showAfterLinkSent')
->add(NonLoggedOnlyMiddleware::class)
->setName('loginAfterLinkSent');

$app->get('/tryLogin/{token}', UserController::class . '::tryLoginWithToken')
Expand Down

0 comments on commit 1d71e15

Please sign in to comment.