mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-02 10:28:50 +03:00
Cleanup and bugfix encryption
This commit is contained in:
parent
414a9509aa
commit
cda88f438a
4 changed files with 36 additions and 41 deletions
|
|
@ -234,7 +234,6 @@ trait UserAuth
|
|||
$this->ClearSignMeData();
|
||||
|
||||
$uuid = \SnappyMail\UUID::generate();
|
||||
\SnappyMail\Crypt::setCipher($this->Config()->Get('security', 'encrypt_cipher', ''));
|
||||
$data = \SnappyMail\Crypt::Encrypt($oAccount);
|
||||
|
||||
if ('xxtea' === $data[0]) {
|
||||
|
|
@ -279,7 +278,6 @@ trait UserAuth
|
|||
if (empty($sAuthToken)) {
|
||||
return null;
|
||||
}
|
||||
\SnappyMail\Crypt::setCipher($this->Config()->Get('security', 'encrypt_cipher', ''));
|
||||
if (!empty($aTokenData['x'])) {
|
||||
$aAccountHash = \SnappyMail\Crypt::XxteaDecrypt($sAuthToken, \base64_decode($aTokenData['x']));
|
||||
} else if (!empty($aTokenData['s'])) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue