fix(auth): inscription AM — persister photo si photo_base64 sans photo_filename (#120)

- Défaut nom fichier photo_am.jpg ; extension finale dérivée du data-URL
- Swagger DTO + description endpoint register/am

Made-with: Cursor
This commit is contained in:
2026-04-12 21:37:47 +02:00
parent eac108c9f4
commit d69768806c
3 changed files with 13 additions and 4 deletions
@@ -76,7 +76,12 @@ export class RegisterAMCompletDto {
@IsString()
photo_base64?: string;
@ApiProperty({ example: 'photo_profil.jpg', required: false })
@ApiProperty({
example: 'photo_profil.jpg',
required: false,
description:
'Nom du fichier photo (optionnel si photo_base64 est fourni ; défaut serveur : photo_am.jpg). Lextension réelle du fichier stocké suit le type MIME du data-URL.',
})
@IsOptional()
@IsString()
photo_filename?: string;