Feature/issue 323 verification documents#452
Merged
LaGodxy merged 8 commits intoApr 23, 2026
Merged
Conversation
- 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
|
@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! 🚀 |
- 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
approved these changes
Apr 23, 2026
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.
Closes #323, Closes #301