Implement email verification #26

Merged
sauceyred merged 14 commits from email-verification into main 2025-07-09 17:54:34 +00:00
Owner

Changelog:

  • Auth
    • Refresh page when auth tokens are cleared
    • Attempt to set instance URL from auth middleware if it isn't set already
    • Check whether instance requires email verification, redirect to /register?special=verify_email if not
  • useApi composable:
    • Add fetchInstanceStats for fetching a specified instance's stats
    • Add sendVerificationEmail
  • /register page
    • Add instance checks for whether registration is enabled and whether email verification is required
    • Add check for if registration has been submitted
    • Add section for email verification
      • Text differs based on if verification is required
      • If verification is required, automatically send one, if not, ask
      • If ?special=verify_email is present, ask user to send a verification email by clicking a button
  • /verify-email page
    • Once verification request is sent and received, redirect to root (/) (or value of redirect_to, if present)

Closes #10

Changelog: - Auth - Refresh page when auth tokens are cleared - Attempt to set instance URL from `auth` middleware if it isn't set already - Check whether instance requires email verification, redirect to `/register?special=verify_email` if not - `useApi` composable: - Add `fetchInstanceStats` for fetching a specified instance's stats - Add `sendVerificationEmail` - `/register` page - Add instance checks for whether registration is enabled and whether email verification is required - Add check for if registration has been submitted - Add section for email verification - Text differs based on if verification is required - If verification is required, automatically send one, if not, ask - If `?special=verify_email` is present, ask user to send a verification email by clicking a button - `/verify-email` page - Once verification request is sent and received, redirect to root (`/`) (or value of `redirect_to`, if present) Closes #10
sauceyred added the
Kind/Feature
label 2025-07-09 17:53:25 +00:00
sauceyred self-assigned this 2025-07-09 17:53:25 +00:00
sauceyred added 13 commits 2025-07-09 17:53:25 +00:00
sauceyred added 1 commit 2025-07-09 17:53:36 +00:00
Merge branch 'main' into email-verification
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
ci/woodpecker/pull_request_closed/build-and-publish Pipeline was successful
822b16ae07
sauceyred merged commit 7ff2b35ae2 into main 2025-07-09 17:54:34 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: gorb/frontend#26
No description provided.