mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
ProtectionService: fix empty password handling
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user