From 5c1cf143034d233a39c0d4f769ce9004d8a8b6f4 Mon Sep 17 00:00:00 2001 From: Jon Welfringer <7365166+W6HBR@users.noreply.github.com> Date: Tue, 19 Sep 2023 18:59:38 -0700 Subject: [PATCH] Add password complexity requirements message to password Reset module. This adds the same functionality that already exists in the UserProfile module. --- Oqtane.Client/Modules/Admin/Reset/Index.razor | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Oqtane.Client/Modules/Admin/Reset/Index.razor b/Oqtane.Client/Modules/Admin/Reset/Index.razor index 0905bb62..151f4aa9 100644 --- a/Oqtane.Client/Modules/Admin/Reset/Index.razor +++ b/Oqtane.Client/Modules/Admin/Reset/Index.razor @@ -6,6 +6,7 @@ @inject IStringLocalizer SharedLocalizer
+
@@ -45,12 +46,14 @@ private string _passwordtype = "password"; private string _togglepassword = string.Empty; private string _confirm = string.Empty; + private string _passwordrequirements; public override SecurityAccessLevel SecurityAccessLevel => SecurityAccessLevel.Anonymous; protected override async Task OnInitializedAsync() { _togglepassword = SharedLocalizer["ShowPassword"]; + _passwordrequirements = await UserService.GetPasswordRequirementsAsync(PageState.Site.SiteId); if (PageState.QueryString.ContainsKey("name") && PageState.QueryString.ContainsKey("token")) {