Skip to content

feat(DIS-158): Add complete email and phone verification functionality#235

Open
Whiskey-Taste wants to merge 6 commits intomainfrom
DIS-158-email-phone-verification
Open

feat(DIS-158): Add complete email and phone verification functionality#235
Whiskey-Taste wants to merge 6 commits intomainfrom
DIS-158-email-phone-verification

Conversation

@Whiskey-Taste
Copy link
Contributor

  • Add sendEmailVerification, sendSmsVerification, verifyEmail, verifySms API endpoints
  • Add useCountdown hook for 60-second cooldown timer
  • Add verification status alerts (warning/success) with detailed messaging
  • Add handleVerifyCode function to process verification codes
  • Add country code validation for mobile numbers
  • Update VerificationSection with countdown timers and full verification flow

Whiskey-Taste and others added 6 commits November 2, 2025 16:33
- Add sendEmailVerification, sendSmsVerification, verifyEmail, verifySms API endpoints
- Add useCountdown hook for 60-second cooldown timer
- Add verification status alerts (warning/success) with detailed messaging
- Add handleVerifyCode function to process verification codes
- Add country code validation for mobile numbers
- Update VerificationSection with countdown timers and full verification flow
- Add VerificationReminder component to Overview page
- Create useVerificationCheck hook for verification status checking
- Add verification blocking to plan switching in BillingSection
- Add verification blocking to booking creation in BookingModal
- Add verification blocking to service creation/update in EditServiceModal
- All follow-up operations are now blocked if email and phone are not verified
…for type safety

- Add mobileCountdown, emailCountdown, isMobileCountdownActive, isEmailCountdownActive props to VerificationCardProps
- Uncomment and enable onVerify prop in VerificationCodeModalProps
- Fix TypeScript type errors in VerificationSection
…tent

- Replace 'any' type with 'unknown' for better type safety
- Use nullish coalescing operator (??) instead of logical or (||)
- Add proper type guards for error handling
- Add eslint-disable comment for console.log in AuthCallbackContent
- 在VerificationSection中添加错误消息Alert组件
- 点击Verify按钮时错误消息现在可以正确显示
- 改进用户体验,错误信息更加清晰可见
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