Skip to content

Commit

Permalink
fix: user creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kan-A-Pesh committed Nov 29, 2024
1 parent ffa3db0 commit 929e041
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/users/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { NextFunction, Request, Response } from "express";
import { z } from "zod";

const body = z.object({
username: z.string().max(20),
username: z.string(),
avatar: z.string().optional(),
email: z.string(),
password: z.string(),
Expand Down Expand Up @@ -71,7 +71,7 @@ export default async function Route_Users_Create(req: Request, res: Response, ne
}

const user = await UserController.createUser(
bodyPayload.data.username,
bodyPayload.data.username.slice(0, 20),
bodyPayload.data.email,
CypherController.hashPassword(bodyPayload.data.password),
bodyPayload.data.clubId
Expand Down

0 comments on commit 929e041

Please sign in to comment.