From 073248777a6414505b1df7f65a0cb1dcf5c44118 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 1 Jun 2025 09:23:16 +0200 Subject: Update test client --- src/dto/auth/AuthDto.js | 6 +++--- src/dto/auth/WhoAmIDto.js | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/dto') 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} -- cgit 1.5.1