View Source
Class UmbTwoFactorLoginController
Inheritance
object
ControllerBase
Controller
Assembly: Umbraco.Web.Website.dll
Syntax
[UmbracoMemberAuthorize]
public class UmbTwoFactorLoginController : SurfaceController, IDiscoverable
Constructors
View Source
UmbTwoFactorLoginController(ILogger<UmbTwoFactorLoginController>, IUmbracoContextAccessor, IUmbracoDatabaseFactory, ServiceContext, AppCaches, IProfilingLogger, IPublishedUrlProvider, IMemberSignInManager, IMemberManager, ITwoFactorLoginService)
Declaration
public UmbTwoFactorLoginController(ILogger<UmbTwoFactorLoginController> logger, IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory databaseFactory, ServiceContext services, AppCaches appCaches, IProfilingLogger profilingLogger, IPublishedUrlProvider publishedUrlProvider, IMemberSignInManager memberSignInManager, IMemberManager memberManager, ITwoFactorLoginService twoFactorLoginService)
Parameters
Methods
View Source
Disable(string, string?)
Declaration
[HttpPost]
public Task<IActionResult> Disable(string providerName, string? returnUrl = null)
Parameters
| Type |
Name |
Description |
| string |
providerName |
|
| string |
returnUrl |
|
Returns
| Type |
Description |
| Task<IActionResult> |
|
View Source
Get2FAProviders()
Used to retrieve the 2FA providers for code submission
Declaration
[AllowAnonymous]
public Task<ActionResult<IEnumerable<string>>> Get2FAProviders()
Returns
| Type |
Description |
| Task<ActionResult<IEnumerable<string>>> |
|
View Source
ValidateAndSaveSetup(string, string, string, string?)
Declaration
[HttpPost]
public Task<IActionResult> ValidateAndSaveSetup(string providerName, string secret, string code, string? returnUrl = null)
Parameters
| Type |
Name |
Description |
| string |
providerName |
|
| string |
secret |
|
| string |
code |
|
| string |
returnUrl |
|
Returns
| Type |
Description |
| Task<IActionResult> |
|
View Source
Verify2FACode(Verify2FACodeModel, string?)
Declaration
[AllowAnonymous]
public Task<IActionResult> Verify2FACode(Verify2FACodeModel model, string? returnUrl = null)
Parameters
Returns
| Type |
Description |
| Task<IActionResult> |
|