Skip to content

Feature/issue 323 verification documents#452

Merged
LaGodxy merged 8 commits into
MettaChain:mainfrom
A6dulmalik:feature/issue-323-verification-documents
Apr 23, 2026
Merged

Feature/issue 323 verification documents#452
LaGodxy merged 8 commits into
MettaChain:mainfrom
A6dulmalik:feature/issue-323-verification-documents

Conversation

@A6dulmalik
Copy link
Copy Markdown
Contributor

Closes #323, Closes #301

- Add VerificationDocument model and VerificationStatus enum to schema
- Create DTOs for verification document operations
- Implement VerificationDocuments service with full CRUD
- Add user endpoints for document upload and management
- Add admin endpoints for document review and approval
- Support for document upload, status tracking, admin review
- Include admin notes and review timestamp
- Pagination support for admin document listing
- Access control: users can only access their own documents
- Update UsersModule to include verification feature
- Add pendingEmail, emailVerificationToken, and emailVerificationExpires fields to User model
- Create DTOs for email change and verification
- Implement EmailVerificationService with secure token generation
- Add endpoint to request email change with verification
- Add endpoint to verify email change with token
- Add endpoint to cancel pending email change
- Maintain old email until new email is verified
- Token expires after 24 hours for security
- Rollback on failure by clearing pending fields
- Update UsersModule to include email verification

Closes MettaChain#323, Closes MettaChain#301
- Add VerificationDocument model and VerificationStatus enum
- Fix type errors in verification documents service
- Import VerificationStatus from @prisma/client

Closes MettaChain#323, Closes MettaChain#301
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 23, 2026

@A6dulmalik Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

A6dulmalik and others added 3 commits April 23, 2026 11:52
- Fix VerificationDocument model syntax error
- Resolve Prisma schema validation error

Closes MettaChain#323, Closes MettaChain#301
- Add verificationDocuments relation field to User model
- Fix Prisma schema validation error P1012
- Regenerate Prisma client with complete schema

Closes MettaChain#323, Closes MettaChain#301
@LaGodxy LaGodxy merged commit 437677d into MettaChain:main Apr 23, 2026
4 checks passed
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.

Implement User Verification Documents Add Email Change Verification

2 participants