Implemented first iteration of initial setup guide #9
@@ -1,8 +1,20 @@
|
|||||||
namespace Moonlight.Shared.Http.Requests.Seup;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
namespace Moonlight.Shared.Http.Requests.Seup;
|
||||||
|
|
||||||
public class ApplySetupDto
|
public class ApplySetupDto
|
||||||
{
|
{
|
||||||
|
[Required]
|
||||||
|
[MinLength(3)]
|
||||||
|
[MaxLength(32)]
|
||||||
public string AdminUsername { get; set; }
|
public string AdminUsername { get; set; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[EmailAddress]
|
||||||
public string AdminEmail { get; set; }
|
public string AdminEmail { get; set; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[MinLength(8)]
|
||||||
|
[MaxLength(64)]
|
||||||
public string AdminPassword { get; set; }
|
public string AdminPassword { get; set; }
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user