Skip to content

fix(auth): add firstName/lastName validation to RegisterDto and socia…#893

Merged
RUKAYAT-CODER merged 2 commits into
rinafcode:mainfrom
Abdulrasaq1515:fix/874-firstname-lastname-validation
Jun 26, 2026
Merged

fix(auth): add firstName/lastName validation to RegisterDto and socia…#893
RUKAYAT-CODER merged 2 commits into
rinafcode:mainfrom
Abdulrasaq1515:fix/874-firstname-lastname-validation

Conversation

@Abdulrasaq1515

Copy link
Copy Markdown
Contributor

…l auth fallback

@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@Abdulrasaq1515 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

…l auth fallback

- Add @IsString, @isnotempty, @maxlength(50), @Transform(trim) for
  firstName and lastName in RegisterDto (closes rinafcode#874)
- Replace empty-string fallback in SocialAuthService with email
  local-part or providerId so non-nullable DB columns are never blank
- Add unit tests covering empty, whitespace-only, and over-limit names
  for both RegisterDto and SocialAuthService
@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project.

@RUKAYAT-CODER RUKAYAT-CODER merged commit 94bd982 into rinafcode:main Jun 26, 2026
2 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.

Add missing firstName and lastName validation in User registration DTO

2 participants