mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #5566 from stevie-mayhew/bugfix/uid
BUGFIX: check token and UID before member autologin
This commit is contained in:
commit
3a9bb642d2
@ -582,6 +582,10 @@ class Member extends DataObject implements TemplateGlobalProvider {
|
|||||||
|
|
||||||
list($uid, $token) = explode(':', Cookie::get('alc_enc'), 2);
|
list($uid, $token) = explode(':', Cookie::get('alc_enc'), 2);
|
||||||
|
|
||||||
|
if (!$uid || !$token) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$member = DataObject::get_by_id("Member", $uid);
|
$member = DataObject::get_by_id("Member", $uid);
|
||||||
|
|
||||||
// check if autologin token matches
|
// check if autologin token matches
|
||||||
|
Loading…
Reference in New Issue
Block a user