Skip to content

Add admin portal for manual email verification#450

Merged
geoffrey-wu merged 3 commits intomainfrom
copilot/add-email-verification-portal
Mar 1, 2026
Merged

Add admin portal for manual email verification#450
geoffrey-wu merged 3 commits intomainfrom
copilot/add-email-verification-portal

Conversation

Copy link
Contributor

Copilot AI commented Mar 1, 2026

Admin portal page to manually verify a user's email by username.

Changes

  • Frontend (client/admin/user-management/email.{html,js}): Form that accepts a username, calls the API, and displays success/error feedback via Bootstrap alerts
  • API route (routes/api/admin/user-management/index.js): PUT /verify-email — looks up user by username, validates existence and current verification status, then calls existing verifyEmail() database function
  • Wiring: Registered user-management router in routes/api/admin/index.js, added User Management card to admin dashboard

The route is protected by the existing admin auth middleware. Returns 400 for missing username, 404 for unknown user, 200 if already verified or newly verified, 500 on DB failure.

email-verification-page


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Create client/admin/user-management/email.html and email.js
- Create routes/api/admin/user-management/index.js with PUT /verify-email
- Register user-management route in admin API router
- Add User Management card to admin index page

Co-authored-by: geoffrey-wu <42471355+geoffrey-wu@users.noreply.github.com>
Copilot AI changed the title [WIP] Add email verification portal for admins Add admin portal for manual email verification Mar 1, 2026
@geoffrey-wu geoffrey-wu marked this pull request as ready for review March 1, 2026 17:46
@geoffrey-wu geoffrey-wu merged commit 2d1de55 into main Mar 1, 2026
2 checks passed
@geoffrey-wu geoffrey-wu deleted the copilot/add-email-verification-portal branch March 1, 2026 17:46
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 this pull request may close these issues.

2 participants