feat(user): require email when admin creates a user

- Add `email` as a required field in `createUserRequest`
- Enforce email format verification and database uniqueness checks in the admin user creation handler
- Update the admin user creation frontend modal with validation and form field
- Update the corresponding backend unit tests and regenerate Swagger docs
This commit is contained in:
ryan
2026-06-13 16:23:07 +08:00
parent 5b13d5b464
commit 922f764241
8 changed files with 115 additions and 0 deletions
+5
View File
@@ -6286,10 +6286,15 @@ const docTemplate = `{
"user.createUserRequest": {
"type": "object",
"required": [
"email",
"password",
"username"
],
"properties": {
"email": {
"type": "string",
"maxLength": 255
},
"is_active": {
"type": "boolean"
},