mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Feat: Update user validation schema to include username/email check
The validation schema will throw an error if the username or email is already found in the database.
This commit is contained in:
@@ -26,11 +26,11 @@ const AccountInfo: FC<{
|
||||
>({
|
||||
resolver: zodResolver(GetUserSchema),
|
||||
defaultValues: {
|
||||
username: 'test',
|
||||
email: 'test@example.com',
|
||||
firstName: 'test',
|
||||
lastName: 'icle',
|
||||
dateOfBirth: new Date(),
|
||||
username: user.username,
|
||||
email: user.email,
|
||||
firstName: user.firstName,
|
||||
lastName: user.lastName,
|
||||
dateOfBirth: user.dateOfBirth,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user