!minor removed the encryption for now while I investigate #865

This commit is contained in:
Jamie.Rees 2017-09-22 16:28:12 +01:00
parent e0c2492987
commit 25d8f9b40d
4 changed files with 130 additions and 95 deletions

View file

@ -9,7 +9,7 @@ using Microsoft.AspNetCore.DataProtection;
namespace Ombi.Settings.Settings
{
public class SettingsService<T> : ISettingsService<T>
where T : Ombi.Settings.Settings.Models.Settings, new()
where T : Models.Settings, new()
{
public SettingsService(ISettingsRepository repo, IDataProtectionProvider provider)
@ -127,12 +127,14 @@ namespace Ombi.Settings.Settings
private string EncryptSettings(GlobalSettings settings)
{
return _protector.Protect(settings.Content);
return settings.Content;
//return _protector.Protect(settings.Content);
}
private string DecryptSettings(GlobalSettings settings)
{
return _protector.Unprotect(settings.Content);
return settings.Content;
//return _protector.Unprotect(settings.Content);
}
}
}