From 50d69548293ca5d821fa22090c509b8850925b67 Mon Sep 17 00:00:00 2001 From: gOOvER Date: Fri, 12 Apr 2024 08:20:44 +0200 Subject: [PATCH] change username leght to 6 --- Moonlight/Core/Models/Forms/RegisterForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moonlight/Core/Models/Forms/RegisterForm.cs b/Moonlight/Core/Models/Forms/RegisterForm.cs index b5184b1..0348070 100644 --- a/Moonlight/Core/Models/Forms/RegisterForm.cs +++ b/Moonlight/Core/Models/Forms/RegisterForm.cs @@ -5,7 +5,7 @@ namespace Moonlight.Core.Models.Forms; public class RegisterForm { [Required(ErrorMessage = "You need to provide an username")] - [MinLength(7, ErrorMessage = "The username is too short")] + [MinLength(6, ErrorMessage = "The username is too short")] [MaxLength(20, ErrorMessage = "The username cannot be longer than 20 characters")] [RegularExpression("^[a-z][a-z0-9]*$", ErrorMessage = "Usernames can only contain lowercase characters and numbers and should not start with a number")] public string Username { get; set; }