From 02ecf6422a66683426a31bbba703ef0dede8c338 Mon Sep 17 00:00:00 2001 From: Jetsparrow Date: Tue, 16 Jul 2024 18:03:28 +0300 Subject: [PATCH] Registration: fix wrong min length values for Login/Name --- JetHerald/Controllers/Ui/RegistrationController.cs | 2 +- JetHerald/Views/Registration/Register.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/JetHerald/Controllers/Ui/RegistrationController.cs b/JetHerald/Controllers/Ui/RegistrationController.cs index f5be007..b571403 100644 --- a/JetHerald/Controllers/Ui/RegistrationController.cs +++ b/JetHerald/Controllers/Ui/RegistrationController.cs @@ -53,7 +53,7 @@ public class RegistrationController : Controller public string Name { get; set; } [BindProperty(Name = "login"), BindRequired] - [StringLength(maximumLength: 64, MinimumLength = 6)] + [StringLength(maximumLength: 64, MinimumLength = 3)] public string Login { get; set; } [BindProperty(Name = "password"), BindRequired] diff --git a/JetHerald/Views/Registration/Register.cshtml b/JetHerald/Views/Registration/Register.cshtml index 2395862..6baaea2 100644 --- a/JetHerald/Views/Registration/Register.cshtml +++ b/JetHerald/Views/Registration/Register.cshtml @@ -13,7 +13,7 @@
- +
Used for display.