Skip to content

Commit

Permalink
Merge pull request #315 from Quickchive/fix/#314-change-password-opti…
Browse files Browse the repository at this point in the history
…onal

fix: change password optional
  • Loading branch information
stae1102 authored Apr 14, 2024
2 parents d350627 + 940fc40 commit a56fe29
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 a56fe29

Please sign in to comment.