Skip to content

Commit

Permalink
fix: change password optional
Browse files Browse the repository at this point in the history
  • Loading branch information
stae1102 committed Apr 14, 2024
1 parent d350627 commit 940fc40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/users/dtos/edit-profile.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export class EditProfileDto {
@Matches(/^(?=.*\d)[A-Za-z\d@$!%*?&]{8,}$/, {
message: 'Password must be at least 8 characters long, contain 1 number',
})
password: string;
@IsOptional()
password?: string;

@ApiProperty({ example: 'tester', description: 'User Name' })
@IsString()
Expand Down

0 comments on commit 940fc40

Please sign in to comment.