From 70cfe7997a0e578c9c4afaa690148397fc6fd152 Mon Sep 17 00:00:00 2001 From: Marc Ole Bulling Date: Wed, 7 Apr 2021 22:23:41 +0200 Subject: [PATCH] Fixed bug that salt was not used for password hashing, introduced in ab4edaff949970d599e0531e5458915494a24184 --- src/configuration/Configuration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configuration/Configuration.go b/src/configuration/Configuration.go index 121ddbb..c61c2eb 100644 --- a/src/configuration/Configuration.go +++ b/src/configuration/Configuration.go @@ -322,9 +322,9 @@ func HashPassword(password string, useFileSalt bool) string { if password == "" { return "" } - salt := Environment.SaltAdmin + salt := ServerSettings.SaltAdmin if useFileSalt { - salt = Environment.SaltFiles + salt = ServerSettings.SaltFiles } bytes := []byte(password + salt) hash := sha1.New()