Move APP_VERSION hashing to smctoken encryption key

This commit is contained in:
the-djmaze 2023-03-07 15:14:49 +01:00
parent 9dbf7b3bad
commit f5045b9759
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ abstract class Account implements \JsonSerializable
{
return \sha1(\implode(APP_SALT, [
$this->sEmail,
APP_VERSION
$this->sLogin,
// \json_encode($this->Domain()),
// $this->sPassword
]));

View file

@ -49,7 +49,7 @@ abstract class Crypt
if (empty($_COOKIE['smctoken'])) {
throw new \RuntimeException('Missing smctoken');
}
$key = $_COOKIE['smctoken'];
$key = $_COOKIE['smctoken'] . APP_VERSION;
}
return \sha1($key . APP_SALT, true);
}