galaeth-draft/Galaeth.ApiServer/Models/ChangePasswordRequest.cs

22 lines
484 B
C#

using System.Text.Json.Serialization;
namespace Galaeth.ApiServer.Models;
/// <summary>
/// Change password request model.
/// </summary>
public class ChangePasswordRequest
{
/// <summary>
/// The user's old password.
/// </summary>
[JsonPropertyName("oldPassword")]
public string OldPassword { get; set; }
/// <summary>
/// The user's new password.
/// </summary>
[JsonPropertyName("newPassword")]
public string NewPassword { get; set; }
}