From f6712dbb2075a7539fb65a09372c444b6b7b94a4 Mon Sep 17 00:00:00 2001 From: jojo aquino Date: Sun, 27 Apr 2025 23:07:35 +0100 Subject: [PATCH] registration fixes --- EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml | 4 ++-- EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml.cs | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml b/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml index 60063f3..dbe8d19 100644 --- a/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml +++ b/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml @@ -39,8 +39,8 @@
-
-
+
+
diff --git a/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml.cs b/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml.cs index ac2bf28..3604873 100644 --- a/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml.cs +++ b/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml.cs @@ -17,7 +17,11 @@ namespace EnotaryoPH.Web.Pages _passwordService = passwordService; } - public void OnGet() => RoleType = nameof(UserType.Principal); + public void OnGet() + { + RoleType = nameof(UserType.Principal); + BirthDate = DateTime.Now.AddYears(-18); + } public IActionResult OnPost() {