Show / Hide Table of Contents

Class LoginModel

Inheritance
System.Object
AccountPageModel
LoginModel
IdentityServerSupportedLoginModel
Inherited Members
AccountPageModel.SignInManager
AccountPageModel.UserManager
AccountPageModel.RedirectSafely(String, String)
AccountPageModel.CheckIdentityErrors(IdentityResult)
AccountPageModel.GetRedirectUrl(String, String)
AccountPageModel.NormalizeReturnUrl(String)
AccountPageModel.CheckCurrentTenant(Nullable<Guid>)
AccountPageModel.GetAppHomeUrl()
Namespace: Volo.Abp.Account.Web.Pages.Account
Assembly: Volo.Abp.Account.Web.dll
Syntax
public class LoginModel : AccountPageModel

Constructors

LoginModel(IAuthenticationSchemeProvider, IOptions<AbpAccountOptions>)

Declaration
public LoginModel(IAuthenticationSchemeProvider schemeProvider, IOptions<AbpAccountOptions> accountOptions)
Parameters
Type Name Description
IAuthenticationSchemeProvider schemeProvider
IOptions<AbpAccountOptions> accountOptions

Properties

AccountOptions

Declaration
protected AbpAccountOptions AccountOptions { get; }
Property Value
Type Description
AbpAccountOptions

EnableLocalLogin

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

ExternalLoginScheme

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

ExternalProviders

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

IsExternalLoginOnly

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

LoginInput

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

ReturnUrl

Declaration
public string ReturnUrl { get; set; }
Property Value
Type Description
System.String

ReturnUrlHash

Declaration
public string ReturnUrlHash { get; set; }
Property Value
Type Description
System.String

SchemeProvider

Declaration
protected IAuthenticationSchemeProvider SchemeProvider { get; }
Property Value
Type Description
IAuthenticationSchemeProvider

VisibleExternalProviders

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

Methods

CheckLocalLoginAsync()

Declaration
protected virtual Task CheckLocalLoginAsync()
Returns
Type Description
System.Threading.Tasks.Task

CreateExternalUserAsync(ExternalLoginInfo)

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

GetExternalProviders()

Declaration
protected virtual Task<List<LoginModel.ExternalProviderModel>> GetExternalProviders()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.List<LoginModel.ExternalProviderModel>>

OnGetAsync()

Declaration
public virtual Task<IActionResult> OnGetAsync()
Returns
Type Description
System.Threading.Tasks.Task<IActionResult>

OnGetExternalLoginCallbackAsync(String, String, String)

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

OnPostAsync(String)

Declaration
public virtual Task<IActionResult> OnPostAsync(string action)
Parameters
Type Name Description
System.String action
Returns
Type Description
System.Threading.Tasks.Task<IActionResult>

OnPostExternalLogin(String)

Declaration
public virtual Task<IActionResult> OnPostExternalLogin(string provider)
Parameters
Type Name Description
System.String provider
Returns
Type Description
System.Threading.Tasks.Task<IActionResult>

ReplaceEmailToUsernameOfInputIfNeeds()

Declaration
protected virtual Task ReplaceEmailToUsernameOfInputIfNeeds()
Returns
Type Description
System.Threading.Tasks.Task

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft