@ -51,6 +51,11 @@ namespace Volo.Abp.Account.Web.Pages.Account
protected IAuthenticationSchemeProvider SchemeProvider { get ; }
protected AbpAccountOptions AccountOptions { get ; }
/// <summary>
/// TODO: Find a better way to implement it. Only show if identity server is used.
/// </summary>
public bool ShowCancelButton { get ; set ; }
public LoginModel (
IAuthenticationSchemeProvider schemeProvider ,
IOptions < AbpAccountOptions > accountOptions )
@ -83,7 +88,7 @@ namespace Volo.Abp.Account.Web.Pages.Account
ValidateModel ( ) ;
ExternalProviders = await GetExternalProviders ( ) ;
EnableLocalLogin = await SettingProvider . IsTrueAsync ( AccountSettingNames . EnableLocalLogin ) ;
await ReplaceEmailToUsernameOfInputIfNeeds ( ) ;