After receiving an email, with a link to /confirm-account?code={code}, during navigation to that page the following should happen:
[x] Attempt to confirm the account with the correct backend API
[x] If the API response is invalid, redirect the user to the homepage with a modal showing the reason why
[x] If the API response is successful, redirect the user to the homepage with a success modal that tells them they can now log in
[x] If there is no code param present in the request, abort the navigation altogether
What might break?
Routing? In order to confirm or reject the confirmation code during navigation, this would seemingly be best to be done in a custom middleware. This bit is new to me, so I would highly recommend reading the docs on how this should be setup: https://nuxt.com/docs/guide/directory-structure/middleware
What are you wanting to be added?
Goal: Verify your account
Objectives:
After receiving an email, with a link to
/confirm-account?code={code}
, during navigation to that page the following should happen:code
param present in the request, abort the navigation altogetherWhat might break?
Routing? In order to confirm or reject the confirmation code during navigation, this would seemingly be best to be done in a custom middleware. This bit is new to me, so I would highly recommend reading the docs on how this should be setup: https://nuxt.com/docs/guide/directory-structure/middleware
Relevant Issues
Parent Issue: https://github.com/leaderboardsgg/leaderboard-site/issues/556 Backend Issue: https://github.com/leaderboardsgg/leaderboard-backend/issues/144