Class RegisterModel
Inheritance
RegisterModel
Assembly: Volo.Abp.Account.Pro.Public.Web.dll
Syntax
public class RegisterModel : AccountPageModel, IAsyncPageFilter, IPageFilter, IFilterMetadata
Constructors
RegisterModel(IAuthenticationSchemeProvider, IOptions<AbpAccountOptions>, IAccountExternalProviderAppService, ICurrentPrincipalAccessor, IHttpClientFactory)
Declaration
public RegisterModel(IAuthenticationSchemeProvider schemeProvider, IOptions<AbpAccountOptions> accountOptions, IAccountExternalProviderAppService accountExternalProviderAppService, ICurrentPrincipalAccessor currentPrincipalAccessor, IHttpClientFactory httpClientFactory)
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
HttpClientFactory
Declaration
protected readonly IHttpClientFactory HttpClientFactory
Field Value
SchemeProvider
Declaration
protected readonly IAuthenticationSchemeProvider SchemeProvider
Field Value
Properties
EnableLocalLogin
Declaration
public bool EnableLocalLogin { get; set; }
Property Value
EnableLocalRegister
Declaration
public bool EnableLocalRegister { get; set; }
Property Value
ExternalLoginScheme
Declaration
public string ExternalLoginScheme { get; }
Property Value
ExternalProviders
Declaration
public IEnumerable<RegisterModel.ExternalProviderModel> ExternalProviders { get; set; }
Property Value
Input
Declaration
[BindProperty]
public RegisterModel.PostInput Input { get; set; }
Property Value
IsExternalLogin
Declaration
[BindProperty(SupportsGet = true)]
public bool IsExternalLogin { get; set; }
Property Value
IsExternalLoginOnly
Declaration
public bool IsExternalLoginOnly { get; }
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
ReturnUrl
Declaration
[BindProperty(SupportsGet = true)]
public string ReturnUrl { get; set; }
Property Value
ReturnUrlHash
Declaration
[BindProperty(SupportsGet = true)]
public string ReturnUrlHash { get; set; }
Property Value
UseCaptcha
Declaration
public bool UseCaptcha { get; set; }
Property Value
VisibleExternalProviders
Declaration
public IEnumerable<RegisterModel.ExternalProviderModel> VisibleExternalProviders { get; }
Property Value
Methods
CheckSelfRegistrationAsync()
Declaration
protected virtual Task<bool> CheckSelfRegistrationAsync()
Returns
GetExternalProviders()
Declaration
protected virtual Task<List<RegisterModel.ExternalProviderModel>> GetExternalProviders()
Returns
IsRemoteAuthenticationHandler(AuthenticationScheme, ExternalProviderDto)
Declaration
protected virtual bool IsRemoteAuthenticationHandler(AuthenticationScheme scheme, ExternalProviderDto externalProviders)
Parameters
Returns
OnGetAsync()
Declaration
public virtual Task<IActionResult> OnGetAsync()
Returns
OnPostAsync()
Declaration
[UnitOfWork]
public virtual Task<IActionResult> OnPostAsync()
Returns
OnPostExternalLogin(string)
Declaration
[UnitOfWork]
public virtual Task<IActionResult> OnPostExternalLogin(string provider)
Parameters
| Type |
Name |
Description |
| string |
provider |
|
Returns
RegisterExternalUserAsync(ExternalLoginInfo, string, string)
Declaration
protected virtual Task<IdentityUser> RegisterExternalUserAsync(ExternalLoginInfo externalLoginInfo, string userName, string emailAddress)
Parameters
Returns
RegisterLocalUserAsync()
Declaration
protected virtual Task<IdentityUser> RegisterLocalUserAsync()
Returns
SetUseCaptchaAsync()
Declaration
protected virtual Task SetUseCaptchaAsync()
Returns
StoreConfirmUser(IdentityUser)
Declaration
protected virtual Task StoreConfirmUser(IdentityUser user)
Parameters
Returns
TrySetEmailAsync()
Declaration
protected virtual Task TrySetEmailAsync()
Returns
VerifyLinkTokenAsync()
Declaration
protected virtual Task<bool> VerifyLinkTokenAsync()
Returns
Implements
Extension Methods