Skip to content

Commit

Permalink
POST user에 빠진 조건 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
tirr-c committed Oct 3, 2023
1 parent dd3e156 commit e9b8f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/handlers/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import changePasswordTemplate from '../templates/change_password_email_template'

export function createUser(model: Model, config: Config): IMiddleware {
const bodySchema = z.object({
username: z.string().regex(/^[a-z][a-z0-9]+$/).nonempty(),
username: z.string().nonempty().max(20).regex(/^[a-z][a-z0-9]+$/),
name: z.string().nonempty(),
password: z.string().min(8),
preferredLanguage: z.enum(['ko', 'en']),
Expand Down

0 comments on commit e9b8f59

Please sign in to comment.