You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: auto-generated username from email prefix can be shorter than 3 chars #54
In both apps/public-api/src/controllers/userAuth.controller.js and apps/dashboard-api/src/controllers/userAuth.controller.js, the buildAuthUserPayload helper falls back to email.split('@')[0] to generate a username when the field is required but not provided.
This can produce a username as short as 1 character (e.g., a@b.com → "a"), which may fail validation rules elsewhere in the codebase that enforce a minimum length (e.g., Lines 389–393 in the controller).
Suggested Fix
Pad the auto-generated username to meet the minimum length requirement:
Activity