mirror of https://github.com/Jackett/Jackett
fix password resetting
This commit is contained in:
parent
87584668dd
commit
61d1c02961
|
@ -47,7 +47,7 @@ namespace Jackett.Controllers.V20
|
|||
{
|
||||
var oldPassword = serverConfig.AdminPassword;
|
||||
if (string.IsNullOrEmpty(password))
|
||||
password = string.Empty;
|
||||
password = null;
|
||||
|
||||
if (oldPassword != password)
|
||||
{
|
||||
|
|
|
@ -24,6 +24,8 @@ namespace Jackett.Services
|
|||
|
||||
public string HashPassword(string input)
|
||||
{
|
||||
if (input == null)
|
||||
return null;
|
||||
// Append key as salt
|
||||
input += _serverConfig.APIKey;
|
||||
|
||||
|
|
Loading…
Reference in New Issue