diff --git a/src/api/middlewares/register.middleware.ts b/src/api/middlewares/register.middleware.ts index f47b8c33e..cff49b365 100644 --- a/src/api/middlewares/register.middleware.ts +++ b/src/api/middlewares/register.middleware.ts @@ -100,8 +100,8 @@ export class RegisterMiddleware implements NestMiddleware { }, HttpStatus.BAD_REQUEST); } const result: any = {}; - if (usrName.length < 8) { - result.username = 'Nama Pengguna Minimal 8 Huruf'; + if (usrName.length < 6) { + result.username = 'Nama Pengguna Minimal 6 Huruf'; } if (!req.body.email.match(/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$/)) { result.email = 'Email Tidak Valid'; diff --git a/src/app/_pages/register/register.component.html b/src/app/_pages/register/register.component.html index 78bcfa703..a7cb71684 100644 --- a/src/app/_pages/register/register.component.html +++ b/src/app/_pages/register/register.component.html @@ -18,7 +18,7 @@