|
|
@@ -16,9 +16,9 @@ import (
|
|
|
|
|
|
func HashPassword(password, salt string) string {
|
|
|
h := md5.New()
|
|
|
- enableDbSalt, _ := config.AppConfig.GetBool("System::EnableDBSalt", true)
|
|
|
+ enableDbSalt := config.AppConfig.GetBool("System::EnableDBSalt", true)
|
|
|
customSalt := config.AppConfig.GetKey("System::PasswordSalt")
|
|
|
- enableBase64, _ := config.AppConfig.GetBool("System::PasswordEnableBase64", true)
|
|
|
+ enableBase64 := config.AppConfig.GetBool("System::PasswordEnableBase64", true)
|
|
|
if !enableDbSalt {
|
|
|
h.Write([]byte(password))
|
|
|
if len(customSalt) > 0 {
|