Skip to content

Commit

Permalink
Fix EmailAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
Njuguna-JohnBrian committed Aug 19, 2024
1 parent ba5f2e5 commit d7bfccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/DTOs/LoginDTO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ namespace api.DTOs;

public class LoginDto
{
[Required(ErrorMessage = "Email is required"), EmailAddress(ErrorMessage = "Email is invalid")]
[Required(ErrorMessage = "Email Address is required"), EmailAddress(ErrorMessage = "Email Address is invalid")]
public required string Email { get; set; }

[Required(ErrorMessage = "Password is required")]
public required string Password { get; set; }
}
}

0 comments on commit d7bfccf

Please sign in to comment.