From 7565b0770e5e35ee0a568532ffb2ebf509106933 Mon Sep 17 00:00:00 2001 From: djmaze Date: Wed, 10 Nov 2021 16:45:59 +0100 Subject: [PATCH] PasswordHash should be password or APP_SALT --- snappymail/v/0.0.0/app/libraries/RainLoop/Model/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Model/Account.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Model/Account.php index e81d14f36..15e03e15c 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Model/Account.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Model/Account.php @@ -116,7 +116,7 @@ class Account implements \JsonSerializable public function PasswordHash() : string { - return \sha1($this->IncPassword() + APP_SALT, true); + return \sha1($this->IncPassword() ?: APP_SALT, true); } public function ClientCert() : string