aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/UserDtos/CreateUserByName.cs
blob: 6b6d9682babc79fa44b09552630a5e9a4cd26ccd (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]
    required public string Name { get; set; }

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