Class LoginModel
Assembly: Volo.Abp.Account.Web.dll
Syntax
public class LoginModel : AccountPageModel, IAsyncPageFilter, IPageFilter, IFilterMetadata
Constructors
LoginModel(IAuthenticationSchemeProvider, IOptions<AbpAccountOptions>, IOptions<IdentityOptions>, IdentityDynamicClaimsPrincipalContributorCache, IWebHostEnvironment)
Declaration
public LoginModel(IAuthenticationSchemeProvider schemeProvider, IOptions<AbpAccountOptions> accountOptions, IOptions<IdentityOptions> identityOptions, IdentityDynamicClaimsPrincipalContributorCache identityDynamicClaimsPrincipalContributorCache, IWebHostEnvironment webHostEnvironment)
Parameters
Properties
AccountOptions
Declaration
protected AbpAccountOptions AccountOptions { get; }
Property Value
EnableLocalLogin
Declaration
public bool EnableLocalLogin { get; set; }
Property Value
ExternalLoginScheme
Declaration
public string ExternalLoginScheme { get; }
Property Value
ExternalProviders
Declaration
public IEnumerable<LoginModel.ExternalProviderModel> ExternalProviders { get; set; }
Property Value
IdentityDynamicClaimsPrincipalContributorCache
Declaration
protected IdentityDynamicClaimsPrincipalContributorCache IdentityDynamicClaimsPrincipalContributorCache { get; }
Property Value
IdentityOptions
Declaration
protected IOptions<IdentityOptions> IdentityOptions { get; }
Property Value
IsExternalLoginOnly
Declaration
public bool IsExternalLoginOnly { get; }
Property Value
LoginInput
Declaration
[BindProperty]
public LoginModel.LoginInputModel LoginInput { get; set; }
Property Value
ReturnUrl
Declaration
[HiddenInput]
[BindProperty(SupportsGet = true)]
public string ReturnUrl { get; set; }
Property Value
ReturnUrlHash
Declaration
[HiddenInput]
[BindProperty(SupportsGet = true)]
public string ReturnUrlHash { get; set; }
Property Value
SchemeProvider
Declaration
protected IAuthenticationSchemeProvider SchemeProvider { get; }
Property Value
ShowCancelButton
Declaration
public bool ShowCancelButton { get; set; }
Property Value
ShowRequireMigrateSeedMessage
Declaration
public bool ShowRequireMigrateSeedMessage { get; set; }
Property Value
VisibleExternalProviders
Declaration
public IEnumerable<LoginModel.ExternalProviderModel> VisibleExternalProviders { get; }
Property Value
WebHostEnvironment
Declaration
protected IWebHostEnvironment WebHostEnvironment { get; }
Property Value
Methods
CheckLocalLoginAsync()
Declaration
protected virtual Task CheckLocalLoginAsync()
Returns
GetExternalProviders()
Declaration
protected virtual Task<List<LoginModel.ExternalProviderModel>> GetExternalProviders()
Returns
OnGetAsync()
Declaration
public virtual Task<IActionResult> OnGetAsync()
Returns
OnGetExternalLoginCallbackAsync(string, string, string)
Declaration
public virtual Task<IActionResult> OnGetExternalLoginCallbackAsync(string returnUrl = "", string returnUrlHash = "", string remoteError = null)
Parameters
Returns
OnPostAsync(string)
Declaration
public virtual Task<IActionResult> OnPostAsync(string action)
Parameters
| Type |
Name |
Description |
| string |
action |
|
Returns
OnPostExternalLogin(string)
Declaration
public virtual Task<IActionResult> OnPostExternalLogin(string provider)
Parameters
| Type |
Name |
Description |
| string |
provider |
|
Returns
ReplaceEmailToUsernameOfInputIfNeeds()
Declaration
protected virtual Task ReplaceEmailToUsernameOfInputIfNeeds()
Returns
TwoFactorLoginResultAsync()
Declaration
protected virtual Task<IActionResult> TwoFactorLoginResultAsync()
Returns
Implements
Extension Methods