mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
29 lines
701 B
C#
29 lines
701 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(ErrorMessage = "The email is invalid.")]
|
|
public string Email { get; set; }
|
|
|
|
/// <summary>
|
|
/// The new username of the user.
|
|
/// </summary>
|
|
[MinLength(4, ErrorMessage = "The username must have at least 4 characters")]
|
|
public string Username { get; set; }
|
|
|
|
/// <summary>
|
|
/// The picture icon.
|
|
/// </summary>
|
|
public IFormFile Picture { get; set; }
|
|
}
|
|
}
|