Skip to content

Commit

Permalink
Char limit
Browse files Browse the repository at this point in the history
  • Loading branch information
diced committed Feb 12, 2021
1 parent 3bf154c commit f45e06e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/controllers/UserController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ export class UserController {
});
if (existing) return sendError(reply, 'User exists already');

if (req.body.username.length > 25) return sendError(reply, 'Limit 25');

try {
this.logger.verbose(`attempting to create ${req.body.username}`);
const user = await this.users.save(
Expand Down

0 comments on commit f45e06e

Please sign in to comment.