create user dto edited

This commit is contained in:
sdraris 2025-09-11 19:25:21 +02:00
parent 05c1a61090
commit ab1e5a4121
3 changed files with 12 additions and 1 deletions

10
package-lock.json generated
View File

@ -19,6 +19,7 @@
"@nestjs/typeorm": "^11.0.0",
"@sentry/nestjs": "^10.10.0",
"bcrypt": "^6.0.0",
"bcryptjs": "^3.0.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.2",
"joi": "^18.0.0",
@ -5003,6 +5004,15 @@
"node": ">= 18"
}
},
"node_modules/bcryptjs": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-3.0.2.tgz",
"integrity": "sha512-k38b3XOZKv60C4E2hVsXTolJWfkGRMbILBIe2IBITXciy5bOsTKot5kDrf3ZfufQtQOUN5mXceUEpU1rTl9Uog==",
"license": "BSD-3-Clause",
"bin": {
"bcrypt": "bin/bcrypt"
}
},
"node_modules/bl": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",

View File

@ -32,6 +32,7 @@
"@nestjs/typeorm": "^11.0.0",
"@sentry/nestjs": "^10.10.0",
"bcrypt": "^6.0.0",
"bcryptjs": "^3.0.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.2",
"joi": "^18.0.0",

View File

@ -18,7 +18,7 @@ export class CreateUserDto {
@IsNotEmpty()
email: string;
@ApiProperty({ minLength: 6 })
@ApiProperty({ minLength: 6, example: 'Mon_motdepasse_fort_1234?' })
@IsString()
@MinLength(6)
password: string;