diff --git a/Oqtane.Client/Modules/Admin/Reset/Index.razor b/Oqtane.Client/Modules/Admin/Reset/Index.razor index 6fd06013..00eac54d 100644 --- a/Oqtane.Client/Modules/Admin/Reset/Index.razor +++ b/Oqtane.Client/Modules/Admin/Reset/Index.razor @@ -7,17 +7,23 @@
-
- - +
+ +
+ +
-
- - +
+ +
+ +
-
- - +
+ +
+ +

@@ -26,23 +32,24 @@ @code { - private ElementReference form; - private bool validated = false; - private string _username = string.Empty; - private string _password = string.Empty; - private string _confirm = string.Empty; + private ElementReference form; + private bool validated = false; + private string _username = string.Empty; + private string _password = string.Empty; + private string _confirm = string.Empty; - public override SecurityAccessLevel SecurityAccessLevel => SecurityAccessLevel.Anonymous; + public override SecurityAccessLevel SecurityAccessLevel => SecurityAccessLevel.Anonymous; - protected override void OnInitialized() - { - if (PageState.QueryString.ContainsKey("name") && PageState.QueryString.ContainsKey("token")) + protected override async Task OnInitializedAsync() + { + if (PageState.QueryString.ContainsKey("name") && PageState.QueryString.ContainsKey("token")) { _username = PageState.QueryString["name"]; } else { - NavigationManager.NavigateTo(NavigateUrl(string.Empty)); + await logger.LogError(LogFunction.Security, "Invalid Attempt To Access User Password Reset"); + NavigationManager.NavigateTo(NavigateUrl("")); // home page } } diff --git a/Oqtane.Client/Resources/Modules/Admin/Reset/Index.resx b/Oqtane.Client/Resources/Modules/Admin/Reset/Index.resx index 0922f6da..a1a3fcb0 100644 --- a/Oqtane.Client/Resources/Modules/Admin/Reset/Index.resx +++ b/Oqtane.Client/Resources/Modules/Admin/Reset/Index.resx @@ -117,22 +117,37 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Confirm Password: - Passwords Entered Do Not Match - You Must Provide A Username, Password, and Email Address + You Must Provide The Password And Confirmation Reset Password - Error Resetting User Password. Please Ensure Password Meets Complexity Requirements. + Error Resetting User Password. Please Ensure The Request To Reset Your Password Was Made Within The Past 24 Hours And The New Password Meets The Complexity Requirements. Error Resetting User Password + + Confirm: + + + Enter the password again. It must exactly match the password entered above. + + + The new password. It must satisfy complexity rules for the site. + + + Password: + + + Your username will be populated from the link you received in the password reset notification + + + Username: + \ No newline at end of file