Skip to content

Commit

Permalink
Merge pull request #25 from fga-eps-mds/feat#75/gerenciar-jornada
Browse files Browse the repository at this point in the history
[fix]security_hotspot
  • Loading branch information
DaviMatheus authored Aug 18, 2024
2 parents e10b770 + 7aaa01e commit 9b58cd3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/users/dtos/change-password.dto.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import { IsString, Matches, MinLength } from 'class-validator';
import { IsString, MinLength } from 'class-validator';

export class ChangePasswordDto {
@IsString()
oldPassword: string;

@IsString()
@MinLength(6)
@Matches(/(?=.*[0-9])/, {
message: 'Password must contain at least one number',
})
newPassword: string;
}

0 comments on commit 9b58cd3

Please sign in to comment.