remove reference to HttpContext as it is not used
This commit is contained in:
parent
9620c5a98f
commit
8b1f95c743
@ -1,6 +1,5 @@
|
|||||||
@namespace Oqtane.Themes.Controls
|
@namespace Oqtane.Themes.Controls
|
||||||
@using System.Net
|
@using System.Net
|
||||||
@using Microsoft.AspNetCore.Http
|
|
||||||
@inherits ThemeControlBase
|
@inherits ThemeControlBase
|
||||||
@inject ISettingService SettingService
|
@inject ISettingService SettingService
|
||||||
@inject IStringLocalizer<Search> Localizer
|
@inject IStringLocalizer<Search> Localizer
|
||||||
@ -40,9 +39,6 @@
|
|||||||
[Parameter]
|
[Parameter]
|
||||||
public string SearchResultPagePath { get; set; } = "search"; // setting to "" will disable search
|
public string SearchResultPagePath { get; set; } = "search"; // setting to "" will disable search
|
||||||
|
|
||||||
[CascadingParameter]
|
|
||||||
HttpContext HttpContext { get; set; }
|
|
||||||
|
|
||||||
[SupplyParameterFromForm(FormName = "SearchForm")]
|
[SupplyParameterFromForm(FormName = "SearchForm")]
|
||||||
public string KeyWords { get => ""; set => _keywords = value; }
|
public string KeyWords { get => ""; set => _keywords = value; }
|
||||||
|
|
||||||
|
@ -474,6 +474,7 @@ namespace Oqtane.Managers
|
|||||||
IdentityUser identityuser = await _identityUserManager.FindByNameAsync(user.Username);
|
IdentityUser identityuser = await _identityUserManager.FindByNameAsync(user.Username);
|
||||||
if (identityuser != null && !string.IsNullOrEmpty(token))
|
if (identityuser != null && !string.IsNullOrEmpty(token))
|
||||||
{
|
{
|
||||||
|
// note that ResetPasswordAsync checks password complexity rules
|
||||||
var result = await _identityUserManager.ResetPasswordAsync(identityuser, token, user.Password);
|
var result = await _identityUserManager.ResetPasswordAsync(identityuser, token, user.Password);
|
||||||
if (result.Succeeded)
|
if (result.Succeeded)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user