mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-23 14:06:58 +01:00
fix: users can set their display_name to a number
This commit is contained in:
@@ -258,7 +258,7 @@ const accountStatusesController: AppController = async (c) => {
|
||||
};
|
||||
|
||||
const updateCredentialsSchema = z.object({
|
||||
display_name: z.string().optional(),
|
||||
display_name: z.coerce.string().optional(),
|
||||
note: z.coerce.string().optional(),
|
||||
avatar: fileSchema.or(z.literal('')).optional(),
|
||||
header: fileSchema.or(z.literal('')).optional(),
|
||||
|
||||
Reference in New Issue
Block a user