mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Fix autologin failing on third visit
This commit is contained in:
parent
7d508f50bd
commit
7510cdf2e1
1 changed files with 1 additions and 1 deletions
|
|
@ -1739,7 +1739,7 @@ class memberController extends member
|
||||||
$new_security_key = Rhymix\Framework\Security::getRandom(24, 'alnum');
|
$new_security_key = Rhymix\Framework\Security::getRandom(24, 'alnum');
|
||||||
$args = new stdClass;
|
$args = new stdClass;
|
||||||
$args->autologin_key = $autologin_key;
|
$args->autologin_key = $autologin_key;
|
||||||
$args->security_key = base64_encode(hash_hmac('sha256', $security_key, $autologin_key, true));
|
$args->security_key = base64_encode(hash_hmac('sha256', $new_security_key, $autologin_key, true));
|
||||||
$update_output = executeQuery('member.updateAutologin', $args);
|
$update_output = executeQuery('member.updateAutologin', $args);
|
||||||
if ($update_output->toBool())
|
if ($update_output->toBool())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue