astral-api/Astral.Services/Dtos/CreateUserDto.cs

39 lines
977 B
C#
Raw Normal View History

2024-12-11 21:36:30 +01:00
// <copyright file="CreateUserDto.cs" company="alveus.dev">
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
// </copyright>
using System.Net;
namespace Astral.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; }
}