Skip to content

Commit

Permalink
Fixed missing validators being updated for 256 character passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
majora2007 committed Sep 19, 2024
1 parent 9bde8e3 commit 717bc6b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion API/DTOs/Account/ConfirmEmailDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class ConfirmEmailDto
[Required]
public string Token { get; set; } = default!;
[Required]
[StringLength(32, MinimumLength = 6)]
[StringLength(256, MinimumLength = 6)]
public string Password { get; set; } = default!;
[Required]
public string Username { get; set; } = default!;
Expand Down
2 changes: 1 addition & 1 deletion API/DTOs/Account/ConfirmPasswordResetDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ public class ConfirmPasswordResetDto
[Required]
public string Token { get; set; } = default!;
[Required]
[StringLength(32, MinimumLength = 6)]
[StringLength(256, MinimumLength = 6)]
public string Password { get; set; } = default!;
}
2 changes: 1 addition & 1 deletion API/DTOs/Account/ResetPasswordDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ResetPasswordDto
/// The new password
/// </summary>
[Required]
[StringLength(32, MinimumLength = 6)]
[StringLength(256, MinimumLength = 6)]
public string Password { get; init; } = default!;
/// <summary>
/// The old, existing password. If an admin is performing the change, this is not required. Otherwise, it is.
Expand Down
2 changes: 1 addition & 1 deletion API/DTOs/RegisterDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public class RegisterDto
/// </summary>
public string Email { get; init; } = default!;
[Required]
[StringLength(32, MinimumLength = 6)]
[StringLength(256, MinimumLength = 6)]
public string Password { get; set; } = default!;
}

0 comments on commit 717bc6b

Please sign in to comment.