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()); } }
public async Task UpdateAllSettingsAsync(UpdateAccountSettingsInput input) { await _accountSettingAppService.UpdateAllSettingsAsync(input); }