Skip to content

Commit

Permalink
fix(backend): remove minimums in login schema
Browse files Browse the repository at this point in the history
  • Loading branch information
wale committed Mar 4, 2024
1 parent 2c022ab commit df4a076
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/api/auth/login.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import { generateTokens } from "~/server/utils/jwt";
import { addRefreshToken } from "~/server/utils/refreshToken";

const schema = z.object({
username: z.string().min(3).optional(),
password: z.string().min(8),
email: z.string().email().min(5).optional(),
username: z.string().optional(),
password: z.string(),
email: z.string().email().optional(),
});

export default defineEventHandler(async (event) => {
Expand Down

0 comments on commit df4a076

Please sign in to comment.