2024-11-17 12:59:08 +01:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
2024-11-17 10:31:01 +01:00
|
|
|
namespace Galaeth.ApiServer.Models;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Change password request model.
|
|
|
|
/// </summary>
|
|
|
|
public class ChangePasswordRequest
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The user's old password.
|
|
|
|
/// </summary>
|
2024-11-17 12:59:08 +01:00
|
|
|
[JsonPropertyName("oldPassword")]
|
2024-11-17 10:31:01 +01:00
|
|
|
public string OldPassword { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The user's new password.
|
|
|
|
/// </summary>
|
2024-11-17 12:59:08 +01:00
|
|
|
[JsonPropertyName("newPassword")]
|
2024-11-17 10:31:01 +01:00
|
|
|
public string NewPassword { get; set; }
|
|
|
|
}
|