ProtectionService: fix empty password handling

This commit is contained in:
kaso17
2018-06-26 17:58:46 +02:00
parent 099adadbdc
commit 8de0b0cbad

View File

@@ -42,11 +42,17 @@ namespace Jackett.Server.Services
public string Protect(string plainText)
{
if (string.IsNullOrEmpty(plainText))
return string.Empty;
return _protector.Protect(plainText);
}
public string UnProtect(string plainText)
{
if (string.IsNullOrEmpty(plainText))
return string.Empty;
return _protector.Unprotect(plainText);
}