| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.ComponentModel.DataAnnotations; |
| | | 4 | | using System.Text; |
| | | 5 | | |
| | | 6 | | namespace MUNity.Schema.Authentication |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// The schema for the login used by the MUNity API. |
| | | 10 | | /// </summary> |
| | | 11 | | public class AuthenticateRequest |
| | | 12 | | { |
| | | 13 | | /// <summary> |
| | | 14 | | /// The username |
| | | 15 | | /// </summary> |
| | | 16 | | [Required] |
| | | 17 | | [MaxLength(40)] |
| | 0 | 18 | | public string Username { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// The password |
| | | 22 | | /// </summary> |
| | | 23 | | [Required] |
| | | 24 | | [MaxLength(300)] |
| | 0 | 25 | | public string Password { get; set; } |
| | | 26 | | } |
| | | 27 | | } |