summary refs log tree commit diff
path: root/src/dto
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-06-01 09:23:16 +0200
committerRory& <root@rory.gay>2025-06-01 09:23:16 +0200
commit073248777a6414505b1df7f65a0cb1dcf5c44118 (patch)
tree35c0c82c1841ee4c7434ada3c89c3e702561361a /src/dto
parentLogin, delete user (diff)
downloadnodejs-final-assignment-073248777a6414505b1df7f65a0cb1dcf5c44118.tar.xz
Update test client
Diffstat (limited to 'src/dto')
-rw-r--r--src/dto/auth/AuthDto.js6
-rw-r--r--src/dto/auth/WhoAmIDto.js1
2 files changed, 4 insertions, 3 deletions
diff --git a/src/dto/auth/AuthDto.js b/src/dto/auth/AuthDto.js

index 14e09ae..22e2620 100644 --- a/src/dto/auth/AuthDto.js +++ b/src/dto/auth/AuthDto.js
@@ -6,9 +6,9 @@ import Joi from 'joi'; */ export class AuthDto { static schema = new Joi.object({ - username: Joi.string().required(), - email: Joi.string().email().required(), - password: Joi.string().required() + password: Joi.string().required(), + username: Joi.string(), + email: Joi.string().email() }).or('username', 'email'); username; diff --git a/src/dto/auth/WhoAmIDto.js b/src/dto/auth/WhoAmIDto.js
index ae1795a..686194c 100644 --- a/src/dto/auth/WhoAmIDto.js +++ b/src/dto/auth/WhoAmIDto.js
@@ -8,6 +8,7 @@ export class WhoAmIDto { userId; username; deviceId; + type; /** * @param data {WhoAmIDto}