Class LoginModel
Assembly: Volo.Abp.Account.Pro.Public.Web.dll
Syntax
[DisableAuditing]
public class LoginModel : AccountPageModel, IAsyncPageFilter, IPageFilter, IFilterMetadata
Constructors
LoginModel(IAuthenticationSchemeProvider, IOptions<AbpAccountOptions>, IAbpRecaptchaValidatorFactory, IAccountExternalProviderAppService, ICurrentPrincipalAccessor, IOptions<IdentityOptions>, IOptionsSnapshot<reCAPTCHAOptions>)
Declaration
public LoginModel(IAuthenticationSchemeProvider schemeProvider, IOptions<AbpAccountOptions> accountOptions, IAbpRecaptchaValidatorFactory recaptchaValidatorFactory, IAccountExternalProviderAppService accountExternalProviderAppService, ICurrentPrincipalAccessor currentPrincipalAccessor, IOptions<IdentityOptions> identityOptions, IOptionsSnapshot<reCAPTCHAOptions> reCaptchaOptions)
Parameters
Fields
AccountExternalProviderAppService
Declaration
protected readonly IAccountExternalProviderAppService AccountExternalProviderAppService
Field Value
AccountOptions
Declaration
protected readonly AbpAccountOptions AccountOptions
Field Value
CurrentPrincipalAccessor
Declaration
protected readonly ICurrentPrincipalAccessor CurrentPrincipalAccessor
Field Value
RecaptchaValidatorFactory
Declaration
protected readonly IAbpRecaptchaValidatorFactory RecaptchaValidatorFactory
Field Value
SchemeProvider
Declaration
protected readonly IAuthenticationSchemeProvider SchemeProvider
Field Value
Properties
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
IsExternalLoginOnly
Declaration
public bool IsExternalLoginOnly { get; }
Property Value
IsLinkLogin
Declaration
public bool IsLinkLogin { get; set; }
Property Value
IsSelfRegistrationEnabled
Declaration
public bool IsSelfRegistrationEnabled { get; set; }
Property Value
LinkTenantId
Declaration
[HiddenInput]
[BindProperty(SupportsGet = true)]
public Guid? LinkTenantId { get; set; }
Property Value
LinkToken
Declaration
[HiddenInput]
[BindProperty(SupportsGet = true)]
public string LinkToken { get; set; }
Property Value
LinkUserId
Declaration
[HiddenInput]
[BindProperty(SupportsGet = true)]
public Guid? LinkUserId { get; set; }
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
ShowCancelButton
Declaration
public bool ShowCancelButton { get; set; }
Property Value
UseCaptcha
Declaration
public bool UseCaptcha { get; set; }
Property Value
VisibleExternalProviders
Declaration
public IEnumerable<LoginModel.ExternalProviderModel> VisibleExternalProviders { get; }
Property Value
Methods
CheckLocalLoginAsync()
Declaration
protected virtual Task<IActionResult> CheckLocalLoginAsync()
Returns
GetExternalProviders()
Declaration
protected virtual Task<List<LoginModel.ExternalProviderModel>> GetExternalProviders()
Returns
GetIdentityUser(string)
Declaration
protected virtual Task<IdentityUser> GetIdentityUser(string userNameOrEmailAddress)
Parameters
| Type |
Name |
Description |
| string |
userNameOrEmailAddress |
|
Returns
HasRequiredIdentitySettings()
Declaration
protected virtual Task<bool> HasRequiredIdentitySettings()
Returns
IsRemoteAuthenticationHandler(AuthenticationScheme, ExternalProviderDto)
Declaration
protected virtual bool IsRemoteAuthenticationHandler(AuthenticationScheme scheme, ExternalProviderDto externalProviders)
Parameters
Returns
OnGetAsync()
Declaration
public virtual Task<IActionResult> OnGetAsync()
Returns
OnGetCreateLinkUser()
Declaration
[UnitOfWork]
public virtual Task<IActionResult> OnGetCreateLinkUser()
Returns
OnGetExternalLoginCallbackAsync(string)
Declaration
[UnitOfWork]
public virtual Task<IActionResult> OnGetExternalLoginCallbackAsync(string remoteError = null)
Parameters
| Type |
Name |
Description |
| string |
remoteError |
|
Returns
OnPostAsync(string)
Declaration
[UnitOfWork]
public virtual Task<IActionResult> OnPostAsync(string action)
Parameters
| Type |
Name |
Description |
| string |
action |
|
Returns
OnPostExternalLogin(string)
Declaration
[UnitOfWork]
public virtual Task<IActionResult> OnPostExternalLogin(string provider)
Parameters
| Type |
Name |
Description |
| string |
provider |
|
Returns
OnRecaptchaScoreBelowThreshold()
Declaration
protected virtual Task<IActionResult> OnRecaptchaScoreBelowThreshold()
Returns
ReCaptchaVerification()
Declaration
protected virtual Task ReCaptchaVerification()
Returns
ReplaceEmailToUsernameOfInputIfNeeds()
Declaration
protected virtual Task ReplaceEmailToUsernameOfInputIfNeeds()
Returns
UseCaptchaOnLoginAsync()
Declaration
protected virtual Task<bool> UseCaptchaOnLoginAsync()
Returns
VerifyLinkTokenAsync()
Declaration
protected virtual Task<bool> VerifyLinkTokenAsync()
Returns
Implements
Extension Methods