Show / Hide Table of Contents

Class LoginModel

Inheritance
object
AccountPageModel
LoginModel
IdentityServerSupportedLoginModel
OpenIddictSupportedLoginModel
Inherited Members
AccountPageModel.CheckCurrentTenant(Guid?)
AccountPageModel.CheckIdentityErrors(IdentityResult)
AccountPageModel.GetLocalizeExceptionMessage(Exception)
AccountPageModel.StoreConfirmUser(IdentityUser)
AccountPageModel.StoreChangePasswordUser(IdentityUser)
AccountPageModel.IsValidReturnUrl(string)
AccountPageModel.AccountAppService
AccountPageModel.SignInManager
AccountPageModel.UserManager
AccountPageModel.IdentitySecurityLogManager
AccountPageModel.IdentityLinkUserAppService
AccountPageModel.IdentityOptions
AccountPageModel.ReCaptchaOptions
AccountPageModel.ExceptionToErrorInfoConverter
Namespace: Volo.Abp.Account.Public.Web.Pages.Account
Assembly: Volo.Abp.Account.Pro.Public.Web.dll
Syntax
public class LoginModel : AccountPageModel

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
Type Name Description
IAuthenticationSchemeProvider schemeProvider
IOptions<AbpAccountOptions> accountOptions
IAbpRecaptchaValidatorFactory recaptchaValidatorFactory
IAccountExternalProviderAppService accountExternalProviderAppService
ICurrentPrincipalAccessor currentPrincipalAccessor
IOptions<IdentityOptions> identityOptions
IOptionsSnapshot<reCAPTCHAOptions> reCaptchaOptions

Fields

AccountExternalProviderAppService

Declaration
protected readonly IAccountExternalProviderAppService AccountExternalProviderAppService
Field Value
Type Description
IAccountExternalProviderAppService

AccountOptions

Declaration
protected readonly AbpAccountOptions AccountOptions
Field Value
Type Description
AbpAccountOptions

CurrentPrincipalAccessor

Declaration
protected readonly ICurrentPrincipalAccessor CurrentPrincipalAccessor
Field Value
Type Description
ICurrentPrincipalAccessor

RecaptchaValidatorFactory

Declaration
protected readonly IAbpRecaptchaValidatorFactory RecaptchaValidatorFactory
Field Value
Type Description
IAbpRecaptchaValidatorFactory

SchemeProvider

Declaration
protected readonly IAuthenticationSchemeProvider SchemeProvider
Field Value
Type Description
IAuthenticationSchemeProvider

Properties

EnableLocalLogin

Declaration
public bool EnableLocalLogin { get; set; }
Property Value
Type Description
bool

ExternalLoginScheme

Declaration
public string ExternalLoginScheme { get; }
Property Value
Type Description
string

ExternalProviders

Declaration
public IEnumerable<LoginModel.ExternalProviderModel> ExternalProviders { get; set; }
Property Value
Type Description
IEnumerable<LoginModel.ExternalProviderModel>

IsExternalLoginOnly

Declaration
public bool IsExternalLoginOnly { get; }
Property Value
Type Description
bool

IsLinkLogin

Declaration
public bool IsLinkLogin { get; set; }
Property Value
Type Description
bool

IsSelfRegistrationEnabled

Declaration
public bool IsSelfRegistrationEnabled { get; set; }
Property Value
Type Description
bool

LinkTenantId

Declaration
[HiddenInput]
[BindProperty(SupportsGet = true)]
public Guid? LinkTenantId { get; set; }
Property Value
Type Description
Guid?

LinkToken

Declaration
[HiddenInput]
[BindProperty(SupportsGet = true)]
public string LinkToken { get; set; }
Property Value
Type Description
string

LinkUserId

Declaration
[HiddenInput]
[BindProperty(SupportsGet = true)]
public Guid? LinkUserId { get; set; }
Property Value
Type Description
Guid?

LoginInput

Declaration
[BindProperty]
public LoginModel.LoginInputModel LoginInput { get; set; }
Property Value
Type Description
LoginModel.LoginInputModel

ReturnUrl

Declaration
[HiddenInput]
[BindProperty(SupportsGet = true)]
public string ReturnUrl { get; set; }
Property Value
Type Description
string

ReturnUrlHash

Declaration
[HiddenInput]
[BindProperty(SupportsGet = true)]
public string ReturnUrlHash { get; set; }
Property Value
Type Description
string

ShowCancelButton

Declaration
public bool ShowCancelButton { get; set; }
Property Value
Type Description
bool

UseCaptcha

Declaration
public bool UseCaptcha { get; set; }
Property Value
Type Description
bool

VisibleExternalProviders

Declaration
public IEnumerable<LoginModel.ExternalProviderModel> VisibleExternalProviders { get; }
Property Value
Type Description
IEnumerable<LoginModel.ExternalProviderModel>

Methods

CheckLocalLoginAsync()

Declaration
protected virtual Task<IActionResult> CheckLocalLoginAsync()
Returns
Type Description
Task<IActionResult>

CreateExternalUserAsync(ExternalLoginInfo)

Declaration
protected virtual Task<IdentityUser> CreateExternalUserAsync(ExternalLoginInfo info)
Parameters
Type Name Description
ExternalLoginInfo info
Returns
Type Description
Task<IdentityUser>

GetExternalProviders()

Declaration
protected virtual Task<List<LoginModel.ExternalProviderModel>> GetExternalProviders()
Returns
Type Description
Task<List<LoginModel.ExternalProviderModel>>

GetIdentityUser(string)

Declaration
protected virtual Task<IdentityUser> GetIdentityUser(string userNameOrEmailAddress)
Parameters
Type Name Description
string userNameOrEmailAddress
Returns
Type Description
Task<IdentityUser>

HasRequiredIdentitySettings()

Declaration
protected virtual Task<bool> HasRequiredIdentitySettings()
Returns
Type Description
Task<bool>

IsRemoteAuthenticationHandler(AuthenticationScheme, ExternalProviderDto)

Declaration
protected virtual bool IsRemoteAuthenticationHandler(AuthenticationScheme scheme, ExternalProviderDto externalProviders)
Parameters
Type Name Description
AuthenticationScheme scheme
ExternalProviderDto externalProviders
Returns
Type Description
bool

OnGetAsync()

Declaration
public virtual Task<IActionResult> OnGetAsync()
Returns
Type Description
Task<IActionResult>

OnGetCreateLinkUser()

Declaration
public virtual Task<IActionResult> OnGetCreateLinkUser()
Returns
Type Description
Task<IActionResult>

OnGetExternalLoginCallbackAsync(string, string, string)

Declaration
public virtual Task<IActionResult> OnGetExternalLoginCallbackAsync(string returnUrl = "", string returnUrlHash = "", string remoteError = null)
Parameters
Type Name Description
string returnUrl
string returnUrlHash
string remoteError
Returns
Type Description
Task<IActionResult>

OnPostAsync(string)

Declaration
public virtual Task<IActionResult> OnPostAsync(string action)
Parameters
Type Name Description
string action
Returns
Type Description
Task<IActionResult>

OnPostExternalLogin(string)

Declaration
public virtual Task<IActionResult> OnPostExternalLogin(string provider)
Parameters
Type Name Description
string provider
Returns
Type Description
Task<IActionResult>

OnRecaptchaScoreBelowThreshold()

Declaration
protected virtual Task<IActionResult> OnRecaptchaScoreBelowThreshold()
Returns
Type Description
Task<IActionResult>

ReCaptchaVerification()

Declaration
protected virtual Task ReCaptchaVerification()
Returns
Type Description
Task

ReplaceEmailToUsernameOfInputIfNeeds()

Declaration
protected virtual Task ReplaceEmailToUsernameOfInputIfNeeds()
Returns
Type Description
Task

UseCaptchaOnLoginAsync()

Declaration
protected virtual Task<bool> UseCaptchaOnLoginAsync()
Returns
Type Description
Task<bool>

VerifyLinkTokenAsync()

Declaration
protected virtual Task<bool> VerifyLinkTokenAsync()
Returns
Type Description
Task<bool>
In this article
Back to top Powered by Volosoft