
* Implemented the ability to disable authentication on a server instance. Admins will require authentication, but non-admin accounts can be setup without any password requirements. * WIP for new login page. * Reworked code to handle disabled auth better. First time user flow is moved into the user login component. * Removed debug code * Removed home component, shakeout testing is complete. * remove a file accidently committed * Fixed a code smell from last PR * Code smells
14 lines
331 B
C#
14 lines
331 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace API.DTOs
|
|
{
|
|
public class RegisterDto
|
|
{
|
|
[Required]
|
|
public string Username { get; init; }
|
|
[Required]
|
|
[StringLength(32, MinimumLength = 6)]
|
|
public string Password { get; set; }
|
|
public bool IsAdmin { get; init; }
|
|
}
|
|
}
|