Skip to content

Commit

Permalink
change fromatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek committed May 27, 2024
1 parent a3c57aa commit a5ac1ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
using OrchardCore.DisplayManagement.Notify;
using OrchardCore.Entities;
using OrchardCore.Modules;
using OrchardCore.Mvc.Core.Utilities;
using OrchardCore.Settings;
using OrchardCore.Users.Events;
using OrchardCore.Users.Models;
Expand All @@ -28,8 +27,6 @@ namespace OrchardCore.Users.Controllers;
[Feature(UserConstants.Features.TwoFactorAuthentication)]
public class TwoFactorAuthenticationController : TwoFactorAuthenticationBaseController, IUpdateModel
{
public static readonly string ControllerName = typeof(TwoFactorAuthenticationController).ControllerName();

private readonly ILogger _logger;
private readonly IEnumerable<ILoginFormEvent> _accountEvents;
private readonly IdentityOptions _identityOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Microsoft.Extensions.Options;
using OrchardCore.DisplayManagement.Handlers;
using OrchardCore.Modules;
using OrchardCore.Mvc.Core.Utilities;
using OrchardCore.Settings;
using OrchardCore.Users.Controllers;
using OrchardCore.Users.Drivers;
Expand All @@ -22,7 +23,7 @@ namespace OrchardCore.Users;
[Feature(UserConstants.Features.TwoFactorAuthentication)]
public class TwoFactorAuthenticationStartup : StartupBase
{
private UserOptions _userOptions;
private static readonly string _twoFactorControllerName = typeof(TwoFactorAuthenticationController).ControllerName(); private UserOptions _userOptions;

public override void ConfigureServices(IServiceCollection services)
{
Expand All @@ -47,7 +48,7 @@ public override void Configure(IApplicationBuilder app, IEndpointRouteBuilder ro
pattern: "LoginWithTwoFactorAuthentication",
defaults: new
{
controller = TwoFactorAuthenticationController.ControllerName,
controller = _twoFactorControllerName,
action = nameof(TwoFactorAuthenticationController.LoginWithTwoFactorAuthentication),
}
);
Expand All @@ -58,7 +59,7 @@ public override void Configure(IApplicationBuilder app, IEndpointRouteBuilder ro
pattern: _userOptions.TwoFactorAuthenticationPath,
defaults: new
{
controller = TwoFactorAuthenticationController.ControllerName,
controller = _twoFactorControllerName,
action = nameof(TwoFactorAuthenticationController.Index),
}
);
Expand Down

0 comments on commit a5ac1ce

Please sign in to comment.