feat: add role-based frontend URL routing for password reset and email verification

Add separate frontend URL environment variables for student and instructor portals. Update password reset and email verification services to route users to the appropriate frontend based on their role (INSTRUCTOR vs STUDENT).
This commit is contained in:
JakkrapartXD 2026-01-30 17:29:08 +07:00
parent 16322454b1
commit bf5d939910
3 changed files with 23 additions and 8 deletions

View file

@ -36,3 +36,6 @@ CORS_ORIGIN=http://localhost:3000
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
FRONTEND_URL_STUDENT=http://localhost:3000
FRONTEND_URL_INSTRUCTOR=http://localhost:3000