Class LoginModel
Inheritance
System.Object
LoginModel
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
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
IsExternalLoginOnly
Declaration
public bool IsExternalLoginOnly { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
LoginInput
Declaration
public LoginModel.LoginInputModel LoginInput { get; set; }
Property Value
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
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
GetExternalProviders()
Declaration
protected virtual Task<List<LoginModel.ExternalProviderModel>> GetExternalProviders()
Returns
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