Skip to content

Commit

Permalink
EOD
Browse files Browse the repository at this point in the history
  • Loading branch information
imclint21 committed Nov 9, 2023
1 parent 1506a0f commit ba62a98
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/HypeProxy/Constants/TicketPriorities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace HypeProxy.Constants;
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum TicketPriorities
{
Low,
Normal,
High
Low = 1,
Normal = 2,
High = 3
}
8 changes: 4 additions & 4 deletions src/HypeProxy/Requests/SignUpRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ namespace HypeProxy.Requests;
public class SignUpRequest
{
[Required]
[EmailAddress(ErrorMessage = "The `Email` field is not a valid email address.")]
[EmailAddress(ErrorMessage = "The e-mail field is not a valid email address.")]
[NoDisposableEmailAddress]
public string Email { get; set; }

[Required]
[Sensible]
[DataType(DataType.Password, ErrorMessage = "The `Password` field is not a valid password.")]
[DataType(DataType.Password, ErrorMessage = "The password field is not a valid password.")]
public string Password { get; set; }

[Required]
public string Fullname { get; set; }

[PublicApiIgnore]
[Sensible]
[Required]
[Required(ErrorMessage = "The fingerprint is required.")]
[RegularExpression("[a-z0-9]{32}", ErrorMessage = "The `Fingerprint` field is not a valid fingerprint hash.")]
public string Fingerprint { get; set; }

[Required]
[Range(typeof(bool), "true", "true", ErrorMessage = "The `AcceptTerms` field is required and should be true.")]
[Range(typeof(bool), "true", "true", ErrorMessage = "You must accept our terms in order to sign-up.")]
public bool AcceptTerms { get; set; }
}
4 changes: 2 additions & 2 deletions src/HypeProxy/Requests/UpdatePasswordRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public class UpdatePasswordRequest

[Sensible]
[Required]
[MinLength(6, ErrorMessage = "This password is too weak.")]
[MinLength(6, ErrorMessage = "The new password is too weak.")]
[DataType(DataType.Password, ErrorMessage = "This is not a valid password.")]
public string NewPassword { get; set; }

[Sensible]
[Required]
[Compare("NewPassword", ErrorMessage = "The PasswordConfirmation field doesn't match with NewPassword field.")]
[Compare("NewPassword", ErrorMessage = "The password confirmation does not match with the password.")]
public string PasswordConfirmation { get; set; }
}

0 comments on commit ba62a98

Please sign in to comment.