fix password resetting

This commit is contained in:
kaso17 2018-01-02 20:08:37 +01:00
parent 87584668dd
commit 61d1c02961
2 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,7 @@ namespace Jackett.Controllers.V20
{
var oldPassword = serverConfig.AdminPassword;
if (string.IsNullOrEmpty(password))
password = string.Empty;
password = null;
if (oldPassword != password)
{

View File

@ -24,6 +24,8 @@ namespace Jackett.Services
public string HashPassword(string input)
{
if (input == null)
return null;
// Append key as salt
input += _serverConfig.APIKey;