public async Task UpdateAllSettingsAsync(UpdateAccountSettingsInput input)
        {
            if (CurrentTenant.Id.HasValue)
            {
                await _settingManager.SetForTenantAsync(CurrentTenant.Id.Value, AccountSettingNames.IsSelfRegistrationEnabled, input.IsSelfRegistrationEnabled.ToString());

                await _settingManager.SetForTenantAsync(CurrentTenant.Id.Value, AccountSettingNames.EnableLocalLogin, input.EnableLocalLogin.ToString());
            }
            else
            {
                await _settingManager.SetGlobalAsync(AccountSettingNames.IsSelfRegistrationEnabled, input.IsSelfRegistrationEnabled.ToString());

                await _settingManager.SetGlobalAsync(AccountSettingNames.EnableLocalLogin, input.EnableLocalLogin.ToString());
            }
        }
Ejemplo n.º 2
0
 public async Task UpdateAllSettingsAsync(UpdateAccountSettingsInput input)
 {
     await _accountSettingAppService.UpdateAllSettingsAsync(input);
 }