mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Existence check for Member autologin token (Merged from r73253)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@73289 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
9426be792f
commit
26b37970f8
@ -253,7 +253,8 @@ class Member extends DataObject {
|
||||
|
||||
$member = DataObject::get_one("Member", "Member.ID = '$SQL_uid'");
|
||||
|
||||
if($member && $member->RememberLoginToken != $token) {
|
||||
// check if autologin token matches
|
||||
if($member && (!$member->RememberLoginToken || $member->RememberLoginToken != $token)) {
|
||||
$member = null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user