From caa16b8a1b632f9096e1f6d6eb7cd7cda5017597 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Tue, 12 Feb 2019 08:15:51 +0300 Subject: [PATCH] #793 cont. ACCOUNT MODULE --- .../src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml | 4 ++-- .../src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml index 69268afed3..8c54ce8005 100644 --- a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml +++ b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml @@ -2,7 +2,7 @@ @using Volo.Abp.Account.Web.Settings @model Volo.Abp.Account.Web.Pages.Account.LoginModel @inherits Volo.Abp.Account.Web.Pages.Account.AccountPage -@inject Volo.Abp.Settings.ISettingManager SettingManager +@inject Volo.Abp.Settings.ISettingProvider SettingProvider @if (Model.EnableLocalLogin) {
@@ -29,7 +29,7 @@
- @if (string.Equals(await SettingManager.GetOrNullAsync(AccountSettingNames.IsSelfRegistrationEnabled), "true", StringComparison.OrdinalIgnoreCase)) + @if (string.Equals(await SettingProvider.GetOrNullAsync(AccountSettingNames.IsSelfRegistrationEnabled), "true", StringComparison.OrdinalIgnoreCase)) { @L["Register"] } diff --git a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs index 67a1934eba..d5ffdefd88 100644 --- a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs +++ b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs @@ -48,7 +48,7 @@ namespace Volo.Abp.Account.Web.Pages.Account protected virtual async Task CheckSelfRegistrationAsync() { - if (!await SettingManager.IsTrueAsync(AccountSettingNames.IsSelfRegistrationEnabled)) + if (!await SettingProvider.IsTrueAsync(AccountSettingNames.IsSelfRegistrationEnabled)) { throw new UserFriendlyException(L["SelfRegistrationDisabledMessage"]); }