Skip to content

Commit

Permalink
Renamed the property ChangePasswordConfirmation to ChangePasswordConf…
Browse files Browse the repository at this point in the history
…irmationPath
  • Loading branch information
DotCat1985 committed Dec 17, 2021
1 parent ac50661 commit 06bb200
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/OrchardCore.Modules/OrchardCore.Users/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public override void Configure(IApplicationBuilder builder, IEndpointRouteBuilde
routes.MapAreaControllerRoute(
name: "ChangePasswordConfirmation",
areaName: "OrchardCore.Users",
pattern: userOptions.ChangePasswordConfirmation,
pattern: userOptions.ChangePasswordConfirmationPath,
defaults: new { controller = accountControllerName, action = nameof(AccountController.ChangePasswordConfirmation) }
);

Expand Down
8 changes: 4 additions & 4 deletions src/OrchardCore/OrchardCore.Users.Abstractions/UserOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class UserOptions
private string _logoffPath = "Users/LogOff";
private string _changePasswordUrl = "ChangePassword";
private string _externalLoginsUrl = "ExternalLogins";
private string _changePasswordConfirmation = "ChangePasswordConfirmation";
private string _changePasswordConfirmationPath = "ChangePasswordConfirmation";

public string LoginPath
{
Expand All @@ -32,10 +32,10 @@ public string ExternalLoginsUrl
set => _externalLoginsUrl = value.Trim(' ', '/');
}

public string ChangePasswordConfirmation
public string ChangePasswordConfirmationPath
{
get => _changePasswordConfirmation;
set => _changePasswordConfirmation = value.Trim(' ', '/');
get => _changePasswordConfirmationPath;
set => _changePasswordConfirmationPath = value.Trim(' ', '/');
}
}
}

0 comments on commit 06bb200

Please sign in to comment.