mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 15:45:55 +08:00
PasswordHash should be password or APP_SALT
This commit is contained in:
parent
1dd592f81f
commit
7565b0770e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue