mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-09 12:08:47 +00:00
fixed error messages
This commit is contained in:
parent
4fa920fd83
commit
4951554c54
2 changed files with 16 additions and 24 deletions
|
@ -9,7 +9,7 @@ export const userRegistrationSchema = z.object({
|
|||
|
||||
export const userLoginSchema = z.object({
|
||||
username: z.string().regex(/^\S*$/, "Username must not contain spaces"), // No whitespaces allowed,
|
||||
password: z.string(),
|
||||
password: z.string().min(1, "Password is required"),
|
||||
});
|
||||
// DTO-Typen aus den Schemas ableiten
|
||||
export type UserRegistrationDto = z.infer<typeof userRegistrationSchema>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue