source: ChapterX.Application/Auth/RegisterRequest.cs

main
Last change on this file was b373fea, checked in by kikisrbinoska <srbinoskakristina07@…>, 12 days ago

Fixes for authentication and auhtorization\

  • Property mode set to 100644
File size: 450 bytes
Line 
1using MediatR;
2using System.ComponentModel.DataAnnotations;
3
4namespace ChapterX.Application.Auth
5{
6 public record RegisterRequest(
7 [Required][MaxLength(50)] string Username,
8 [Required][EmailAddress][MaxLength(200)] string Email,
9 [Required][MaxLength(100)] string Name,
10 [Required][MaxLength(100)] string Surname,
11 [Required][MinLength(8)][MaxLength(128)] string Password
12 ) : IRequest<RegisterResponse>;
13}
Note: See TracBrowser for help on using the repository browser.