Show / Hide Table of Contents

Class LoginModel

Inheritance
object
PageModel
AbpPageModel
AccountPageModel
LoginModel
IdentityServerSupportedLoginModel
OpenIddictSupportedLoginModel
Implements
IAsyncPageFilter
IPageFilter
IFilterMetadata
Inherited Members
AccountPageModel.CheckCurrentTenant(Guid?)
AccountPageModel.CheckIdentityErrors(IdentityResult)
AccountPageModel.GetLocalizeExceptionMessage(Exception)
AccountPageModel.StoreConfirmUser(IdentityUser)
AccountPageModel.StoreChangePasswordUser(IdentityUser)
AccountPageModel.StoreLockedUser(IdentityUser)
AccountPageModel.IsValidReturnUrlAsync(string)
AccountPageModel.GetTenantDomainAsync()
AccountPageModel.AccountAppService
AccountPageModel.AccountExternalLoginAppService
AccountPageModel.SignInManager
AccountPageModel.IdentitySessionManager
AccountPageModel.CurrentClient
AccountPageModel.WebClientInfoProvider
AccountPageModel.UserManager
AccountPageModel.IdentitySecurityLogManager
AccountPageModel.IdentityLinkUserAppService
AccountPageModel.IdentityOptions
AccountPageModel.ReCaptchaOptions
AccountPageModel.ExceptionToErrorInfoConverter
AccountPageModel.IdentityDynamicClaimsPrincipalContributorCache
AccountPageModel.TenantStore
AbpPageModel.NoContent()
AbpPageModel.ValidateModel()
AbpPageModel.CheckPolicyAsync(string)
AbpPageModel.PartialView<TModel>(string, TModel)
AbpPageModel.CreateLocalizer()
AbpPageModel.RedirectSafelyAsync(string, string)
AbpPageModel.GetRedirectUrlAsync(string, string)
AbpPageModel.NormalizeReturnUrlAsync(string)
AbpPageModel.GetAppHomeUrlAsync()
AbpPageModel.LazyServiceProvider
AbpPageModel.ServiceProvider
AbpPageModel.Clock
AbpPageModel.Alerts
AbpPageModel.UnitOfWorkManager
AbpPageModel.ObjectMapperContext
AbpPageModel.ObjectMapper
AbpPageModel.GuidGenerator
AbpPageModel.LoggerFactory
AbpPageModel.StringLocalizerFactory
AbpPageModel.L
AbpPageModel.LocalizationResourceType
AbpPageModel.CurrentUser
AbpPageModel.CurrentTenant
AbpPageModel.SettingProvider
AbpPageModel.ModelValidator
AbpPageModel.AuthorizationService
AbpPageModel.AlertManager
AbpPageModel.CurrentUnitOfWork
AbpPageModel.Logger
AbpPageModel.AppUrlProvider
PageModel.TryUpdateModelAsync<TModel>(TModel)
PageModel.TryUpdateModelAsync<TModel>(TModel, string)
PageModel.TryUpdateModelAsync<TModel>(TModel, string, IValueProvider)
PageModel.TryUpdateModelAsync<TModel>(TModel, string, params Expression<Func<TModel, object>>[])
PageModel.TryUpdateModelAsync<TModel>(TModel, string, Func<ModelMetadata, bool>)
PageModel.TryUpdateModelAsync<TModel>(TModel, string, IValueProvider, params Expression<Func<TModel, object>>[])
PageModel.TryUpdateModelAsync<TModel>(TModel, string, IValueProvider, Func<ModelMetadata, bool>)
PageModel.TryUpdateModelAsync(object, Type, string)
PageModel.TryUpdateModelAsync(object, Type, string, IValueProvider, Func<ModelMetadata, bool>)
PageModel.BadRequest()
PageModel.BadRequest(object)
PageModel.BadRequest(ModelStateDictionary)
PageModel.Challenge()
PageModel.Challenge(params string[])
PageModel.Challenge(AuthenticationProperties)
PageModel.Challenge(AuthenticationProperties, params string[])
PageModel.Content(string)
PageModel.Content(string, string)
PageModel.Content(string, string, Encoding)
PageModel.Content(string, MediaTypeHeaderValue)
PageModel.Forbid()
PageModel.Forbid(params string[])
PageModel.Forbid(AuthenticationProperties)
PageModel.Forbid(AuthenticationProperties, params string[])
PageModel.File(byte[], string)
PageModel.File(byte[], string, string)
PageModel.File(Stream, string)
PageModel.File(Stream, string, string)
PageModel.File(string, string)
PageModel.File(string, string, string)
PageModel.LocalRedirect(string)
PageModel.LocalRedirectPermanent(string)
PageModel.LocalRedirectPreserveMethod(string)
PageModel.LocalRedirectPermanentPreserveMethod(string)
PageModel.NotFound()
PageModel.NotFound(object)
PageModel.Page()
PageModel.PhysicalFile(string, string)
PageModel.PhysicalFile(string, string, string)
PageModel.Redirect(string)
PageModel.RedirectPermanent(string)
PageModel.RedirectPreserveMethod(string)
PageModel.RedirectPermanentPreserveMethod(string)
PageModel.RedirectToAction(string)
PageModel.RedirectToAction(string, object)
PageModel.RedirectToAction(string, string)
PageModel.RedirectToAction(string, string, object)
PageModel.RedirectToAction(string, string, string)
PageModel.RedirectToAction(string, string, object, string)
PageModel.RedirectToActionPreserveMethod(string, string, object, string)
PageModel.RedirectToActionPermanent(string)
PageModel.RedirectToActionPermanent(string, object)
PageModel.RedirectToActionPermanent(string, string)
PageModel.RedirectToActionPermanent(string, string, string)
PageModel.RedirectToActionPermanent(string, string, object)
PageModel.RedirectToActionPermanent(string, string, object, string)
PageModel.RedirectToActionPermanentPreserveMethod(string, string, object, string)
PageModel.RedirectToRoute(string)
PageModel.RedirectToRoute(object)
PageModel.RedirectToRoute(string, object)
PageModel.RedirectToRoute(string, string)
PageModel.RedirectToRoute(string, object, string)
PageModel.RedirectToRoutePreserveMethod(string, object, string)
PageModel.RedirectToRoutePermanent(string)
PageModel.RedirectToRoutePermanent(object)
PageModel.RedirectToRoutePermanent(string, object)
PageModel.RedirectToRoutePermanent(string, string)
PageModel.RedirectToRoutePermanent(string, object, string)
PageModel.RedirectToRoutePermanentPreserveMethod(string, object, string)
PageModel.RedirectToPage()
PageModel.RedirectToPage(object)
PageModel.RedirectToPage(string)
PageModel.RedirectToPage(string, string)
PageModel.RedirectToPage(string, string, object)
PageModel.RedirectToPage(string, object)
PageModel.RedirectToPage(string, string, string)
PageModel.RedirectToPage(string, string, object, string)
PageModel.RedirectToPagePermanent(string)
PageModel.RedirectToPagePermanent(string, object)
PageModel.RedirectToPagePermanent(string, string)
PageModel.RedirectToPagePermanent(string, string, object)
PageModel.RedirectToPagePermanent(string, string, string)
PageModel.RedirectToPagePermanent(string, object, string)
PageModel.RedirectToPagePermanent(string, string, object, string)
PageModel.RedirectToPagePreserveMethod(string, string, object, string)
PageModel.RedirectToPagePermanentPreserveMethod(string, string, object, string)
PageModel.SignIn(ClaimsPrincipal, string)
PageModel.SignIn(ClaimsPrincipal, AuthenticationProperties, string)
PageModel.SignOut(params string[])
PageModel.SignOut(AuthenticationProperties, params string[])
PageModel.StatusCode(int)
PageModel.StatusCode(int, object)
PageModel.Unauthorized()
PageModel.Partial(string)
PageModel.Partial(string, object)
PageModel.ViewComponent(string)
PageModel.ViewComponent(Type)
PageModel.ViewComponent(string, object)
PageModel.ViewComponent(Type, object)
PageModel.TryValidateModel(object)
PageModel.TryValidateModel(object, string)
PageModel.OnPageHandlerSelected(PageHandlerSelectedContext)
PageModel.OnPageHandlerExecuting(PageHandlerExecutingContext)
PageModel.OnPageHandlerExecuted(PageHandlerExecutedContext)
PageModel.OnPageHandlerSelectionAsync(PageHandlerSelectedContext)
PageModel.OnPageHandlerExecutionAsync(PageHandlerExecutingContext, PageHandlerExecutionDelegate)
PageModel.PageContext
PageModel.HttpContext
PageModel.Request
PageModel.Response
PageModel.RouteData
PageModel.ModelState
PageModel.User
PageModel.TempData
PageModel.Url
PageModel.MetadataProvider
PageModel.ViewData
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Account.Public.Web.Pages.Account
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
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

BackToExternalLogins

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

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>

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
[UnitOfWork]
public virtual Task<IActionResult> OnGetCreateLinkUser()
Returns
Type Description
Task<IActionResult>

OnGetExternalLoginCallbackAsync(string)

Declaration
[UnitOfWork]
public virtual Task<IActionResult> OnGetExternalLoginCallbackAsync(string remoteError = null)
Parameters
Type Name Description
string remoteError
Returns
Type Description
Task<IActionResult>

OnGetNewExternalLoginCallbackAsync(string)

Declaration
[UnitOfWork]
public virtual Task<IActionResult> OnGetNewExternalLoginCallbackAsync(string remoteError = null)
Parameters
Type Name Description
string remoteError
Returns
Type Description
Task<IActionResult>

OnPostAsync(string)

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

OnPostExternalLogin(string)

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

OnPostNewExternalLogin(string)

Declaration
[UnitOfWork]
public virtual Task<IActionResult> OnPostNewExternalLogin(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

ShouldAskUserPasswordAsync(ExternalLoginInfo)

Declaration
protected virtual Task<IActionResult> ShouldAskUserPasswordAsync(ExternalLoginInfo loginInfo)
Parameters
Type Name Description
ExternalLoginInfo loginInfo
Returns
Type Description
Task<IActionResult>

UseCaptchaOnLoginAsync()

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

VerifyLinkTokenAsync()

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

Implements

IAsyncPageFilter
IPageFilter
IFilterMetadata

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform