Skip to content

Commit

Permalink
Merge pull request #12 from Njuguna-JohnBrian/fixEmailAddress
Browse files Browse the repository at this point in the history
Fix EmailAddress
  • Loading branch information
Njuguna-JohnBrian authored Aug 19, 2024
2 parents dacacd9 + d7bfccf commit 28231d6
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 28231d6

Please sign in to comment.