mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Fix #709 invalid update of autologin security keys
This commit is contained in:
parent
3a46d7d6c2
commit
48db8bf660
2 changed files with 6 additions and 0 deletions
|
|
@ -1718,6 +1718,7 @@ class memberController extends member
|
|||
// Update the security key.
|
||||
$new_security_key = Rhymix\Framework\Security::getRandom(24, 'alnum');
|
||||
$args = new stdClass;
|
||||
$args->autologin_key = $autologin_key;
|
||||
$args->security_key = $new_security_key;
|
||||
$update_output = executeQuery('member.updateAutologin', $args);
|
||||
if ($update_output->toBool())
|
||||
|
|
|
|||
|
|
@ -9,4 +9,9 @@
|
|||
<column name="last_ipaddress" var="last_ipaddress" default="ipaddress()" />
|
||||
<column name="user_agent" var="user_agent" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="autologin_key" var="autologin_key" />
|
||||
<condition operation="notequal" column="autologin_key" var="not_autologin_key" pipe="and" />
|
||||
<condition operation="equal" column="member_srl" var="member_srl" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue