mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 01:02:57 -07:00
!minor removed the encryption for now while I investigate #865
This commit is contained in:
parent
e0c2492987
commit
25d8f9b40d
4 changed files with 130 additions and 95 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue