feat(DIS-158): Add complete email and phone verification functionality#235
Open
Whiskey-Taste wants to merge 6 commits intomainfrom
Open
feat(DIS-158): Add complete email and phone verification functionality#235Whiskey-Taste wants to merge 6 commits intomainfrom
Whiskey-Taste wants to merge 6 commits intomainfrom
Conversation
Contributor
Whiskey-Taste
commented
Nov 2, 2025
- 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 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按钮时错误消息现在可以正确显示 - 改进用户体验,错误信息更加清晰可见
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.