update login auth

This commit is contained in:
2024-12-27 08:34:08 +07:00
parent c5616bb24d
commit 3eb8c285fd
3 changed files with 9 additions and 2 deletions

View File

@ -36,7 +36,7 @@ export class AuthController {
try {
const schema = Joi.object().keys({
username: Joi.string().max(64).required().label('Username'),
password: Joi.string().alphanum().min(6).required().label('Password')
password: Joi.string().min(8).required().label('Password')
});
const param: User = await schema.validateAsync(req.body);