mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Use cached query
Fixes https://github.com/silverstripe/silverstripe-framework/issues/10833
This commit is contained in:
parent
ab4802caaf
commit
2e73b5eeca
@ -4,6 +4,7 @@ namespace SilverStripe\Security\MemberAuthenticator;
|
|||||||
|
|
||||||
use SilverStripe\Control\Controller;
|
use SilverStripe\Control\Controller;
|
||||||
use SilverStripe\Control\Cookie;
|
use SilverStripe\Control\Cookie;
|
||||||
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\Control\Director;
|
use SilverStripe\Control\Director;
|
||||||
use SilverStripe\Control\HTTPRequest;
|
use SilverStripe\Control\HTTPRequest;
|
||||||
use SilverStripe\Security\AuthenticationHandler;
|
use SilverStripe\Security\AuthenticationHandler;
|
||||||
@ -59,7 +60,7 @@ class SessionAuthenticationHandler implements AuthenticationHandler
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
/** @var Member $member */
|
/** @var Member $member */
|
||||||
$member = Member::get()->byID($id);
|
$member = DataObject::get_by_id("SilverStripe\\Security\\Member", $id);
|
||||||
return $member;
|
return $member;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user