Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect User After Login #479

Closed
fcaps opened this issue Nov 20, 2023 · 0 comments · Fixed by #481
Closed

Redirect User After Login #479

fcaps opened this issue Nov 20, 2023 · 0 comments · Fixed by #481
Assignees

Comments

@fcaps
Copy link
Collaborator

fcaps commented Nov 20, 2023

if you go to a restricted site (account, leaderboard etc.) you will be redirected to login and after that to the "/" homepage.
ideally we should try to redirect the user to the original site after login, this is not possible and should also not be done in every scenario.

Acceptance criteria:

  • xhr/json request are not getting redirected at all (401 with error-message)
  • post/put or any "updating" action/page will not be redirected after login
  • somehow the ability to "configure" where to redirect after login per route. maybe middleware.isAuthenticated(redirectTo = '/account')
@fcaps fcaps self-assigned this Nov 20, 2023
fcaps added a commit to fcaps/website that referenced this issue Nov 20, 2023
routers, middlewares, setup and cron-jobs.
init tests with logged-in user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant