mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03: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
|
public function PasswordHash() : string
|
||||||
{
|
{
|
||||||
return \sha1($this->IncPassword() + APP_SALT, true);
|
return \sha1($this->IncPassword() ?: APP_SALT, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ClientCert() : string
|
public function ClientCert() : string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue