mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
28 lines
601 B
C#
28 lines
601 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace Kyoo.Authentication.Models.DTO
|
|
{
|
|
/// <summary>
|
|
/// A model only used on account update requests.
|
|
/// </summary>
|
|
public class AccountUpdateRequest
|
|
{
|
|
/// <summary>
|
|
/// The new email address of the user
|
|
/// </summary>
|
|
[EmailAddress]
|
|
public string Email { get; set; }
|
|
|
|
/// <summary>
|
|
/// The new username of the user.
|
|
/// </summary>
|
|
[MinLength(4)]
|
|
public string Username { get; set; }
|
|
|
|
/// <summary>
|
|
/// The picture icon.
|
|
/// </summary>
|
|
public IFormFile Picture { get; set; }
|
|
}
|
|
} |