9 lines
369 B
C#
9 lines
369 B
C#
using OnlyPrompt.Backend.ApiModels.Validators;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace OnlyPrompt.Backend.ApiModels.Auth
|
|
{
|
|
public record ApiLoginRequest(string UserNameOrEmail, string Password);
|
|
public record ApiRegisterRequest([MaxLength(100)] string DisplayName, [MaxLength(100)][NoWhitespace] string? UserName, string Email, string Password);
|
|
}
|