mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
elofgren: Add missing single quotes around 'uid' variable in call to DataObject::get_one in Member::autoLogin()
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41787 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b5156e26ae
commit
fcc1ea82a3
@ -71,7 +71,7 @@ class Member extends DataObject {
|
||||
$token = Convert::raw2sql($token);
|
||||
|
||||
$member = DataObject::get_one(
|
||||
"Member", "Member.ID = $uid And RememberLoginToken = '$token'");
|
||||
"Member", "Member.ID = '$uid' And RememberLoginToken = '$token'");
|
||||
|
||||
if($member) {
|
||||
session_regenerate_id(true);
|
||||
|
Loading…
Reference in New Issue
Block a user