mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-23 07:08:05 +08:00
PasswordHash should be password or APP_SALT
This commit is contained in:
parent
1dd592f81f
commit
7565b0770e
1 changed files with 1 additions and 1 deletions
|
@ -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