feat: resend verification email functionality
Backend: - Added POST /api/auth/resend-verification endpoint - Rate limited to 3/hour to prevent abuse - Generates new verification token (24h validity) - Sends new verification email Frontend: - Verify.jsx: Added "expired" status with resend flow - Email input + "Neue Bestätigungs-E-Mail senden" button - EmailVerificationBanner: Added "Neue E-Mail senden" button - Shows success/error feedback inline - api.js: Added resendVerification() helper User flows: 1. Expired token → Verify page shows resend form 2. Email lost → Dashboard banner has resend button 3. Both flows use same backend endpoint Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
9fb6e27256
commit
f843d71d6b
4 files changed
+263
-6
No files matched your search
@@ -144,6 +144,7 @@ export const api = {
|
||||
changePin: (pin) => req('/auth/pin',json({pin})),
|
||||
register: (name,email,password) => req('/auth/register',json({name,email,password})),
|
||||
verifyEmail: (token) => req(`/auth/verify/${token}`),
|
||||
resendVerification: (email) => req('/auth/resend-verification',json({email})),
|
||||
|
||||
// v9c Subscription System
|
||||
// User-facing
|
||||
|
||||
Reference in new issue
Block a user