galaeth-draft/Galaeth.Services/Dtos/CreateUserDto.cs
2024-11-17 09:31:01 +00:00

35 lines
819 B
C#

using System.Net;
namespace Galaeth.Services.Dtos;
/// <summary>
/// Perform the creation of a new user.
/// </summary>
public class CreateUserDto
{
/// <summary>
/// New user's username. Must be unique.
/// </summary>
public string Username { get; set; }
/// <summary>
/// New user's email address. Must be unique.
/// </summary>
public string Email { get; set; }
/// <summary>
/// New user's password. Must comply with password policy.
/// </summary>
public string Password { get; set; }
/// <summary>
/// New user's IP address upon registration.
/// </summary>
public IPAddress IpAddress { get; set; }
/// <summary>
/// If activation should be performed immediately.
/// </summary>
public bool ActivateImmediately { get; set; }
}