PasswordHash should be password or APP_SALT

This commit is contained in:
djmaze 2021-11-10 16:45:59 +01:00
parent 1dd592f81f
commit 7565b0770e

View file

@ -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