aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/UserDtos/CreateUserByName.cs
blob: 484a0f123be287be9d8c4ac922acbd6a69033fc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System.ComponentModel.DataAnnotations;

namespace Jellyfin.Api.Models.UserDtos;

/// <summary>
/// The create user by name request body.
/// </summary>
public class CreateUserByName
{
    /// <summary>
    /// Gets or sets the username.
    /// </summary>
    [Required]
    public required string Name { get; set; }

    /// <summary>
    /// Gets or sets the password.
    /// </summary>
    public string? Password { get; set; }
}