BUGFIX: autologin wa going wrong

This commit is contained in:
Jeroen De Meerleer 2021-04-15 13:02:21 +02:00
parent d2e6812011
commit 802f6f16fc
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class User
public function createAutologinToken($password): string
{
$time = time();
$password = substr($time, -7) . $password;
$password = $password . substr($time, -7) ;
$encrypted = Secret::encrypt($password);
return base64_encode(json_encode(['time' => $time, 'password' => base64_encode($encrypted)]));
}