blob: 0397d7ce0243f919c4ab499bfe0f8c59a312411d (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 | using System.ComponentModel.DataAnnotations;
using Timeline.Controllers;
namespace Timeline.Models.Http
{
    /// <summary>
    /// Request model for <see cref="UserController.ChangePassword(HttpChangePasswordRequest)"/>.
    /// </summary>
    public class HttpChangePasswordRequest
    {
        /// <summary>
        /// Old password.
        /// </summary>
        [Required(AllowEmptyStrings = false)]
        public string OldPassword { get; set; } = default!;
        /// <summary>
        /// New password.
        /// </summary>
        [Required(AllowEmptyStrings = false)]
        public string NewPassword { get; set; } = default!;
    }
}
 |