Class UmbLoginController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Microsoft.AspNetCore.Mvc.Controller
Namespace: Umbraco.Cms.Web.Website.Controllers
Assembly: Umbraco.Web.Website.dll
Syntax
public class UmbLoginController : SurfaceController, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable
Constructors
View SourceUmbLoginController(IUmbracoContextAccessor, IUmbracoDatabaseFactory, ServiceContext, AppCaches, IProfilingLogger, IPublishedUrlProvider, IMemberSignInManager, IMemberManager, ITwoFactorLoginService)
Declaration
[ActivatorUtilitiesConstructor]
public UmbLoginController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory databaseFactory, ServiceContext services, AppCaches appCaches, IProfilingLogger profilingLogger, IPublishedUrlProvider publishedUrlProvider, IMemberSignInManager signInManager, IMemberManager memberManager, ITwoFactorLoginService twoFactorLoginService)
Parameters
Type | Name | Description |
---|---|---|
IUmbracoContextAccessor | umbracoContextAccessor | |
IUmbracoDatabaseFactory | databaseFactory | |
ServiceContext | services | |
AppCaches | appCaches | |
IProfilingLogger | profilingLogger | |
IPublishedUrlProvider | publishedUrlProvider | |
IMemberSignInManager | signInManager | |
IMemberManager | memberManager | |
ITwoFactorLoginService | twoFactorLoginService |
Methods
View SourceHandleLogin(LoginModel)
Declaration
[HttpPost]
[ValidateAntiForgeryToken]
[ValidateUmbracoFormRouteString]
public async Task<IActionResult> HandleLogin([Bind(new string[]{}, Prefix = "loginModel")] LoginModel model)
Parameters
Type | Name | Description |
---|---|---|
LoginModel | model |
Returns
Type | Description |
---|---|
Task<Microsoft.AspNetCore.Mvc.IActionResult> |