This commit introduces the following changes to the codebase:
Added VerificationStatus component to handle displaying verification status.
Implemented checkVerificationStatus method in the VerificationForm component to check user verification status.
Updated VerificationForm to use the new VerificationStatus component for displaying verification messages.
Added isVerified state to track and manage verification status.
Implemented auto-redirect to the login page after successful verification.
Updated error handling to include cases for verification status check errors.
Refactored form submission to update the isVerified state based on verification results.
Added TypeScript interfaces for new API responses (VerificationStatusResponse and VerificationStatusErrorResponse).
Purpose
The purpose of this commit is to enhance the frontend verification process by adding a dedicated component for displaying verification status and improving user experience through clear feedback and redirection after account verification. This pull request addresses issue #6.
Description
This commit introduces the following changes to the codebase:
VerificationStatus
component to handle displaying verification status.checkVerificationStatus
method in theVerificationForm
component to check user verification status.VerificationForm
to use the newVerificationStatus
component for displaying verification messages.isVerified
state to track and manage verification status.isVerified
state based on verification results.VerificationStatusResponse
andVerificationStatusErrorResponse
).Purpose
The purpose of this commit is to enhance the frontend verification process by adding a dedicated component for displaying verification status and improving user experience through clear feedback and redirection after account verification. This pull request addresses issue #6.