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