summary refs log tree commit diff
path: root/src/dto
diff options
context:
space:
mode:
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}