mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Member::autoLogin() not setting alc_enc properly. PATCH via simon_w. FIXES: #6646.
This commit is contained in:
parent
3588cefa30
commit
ef6432d647
@ -401,7 +401,7 @@ class Member extends DataObject {
|
|||||||
|
|
||||||
$generator = new RandomGenerator();
|
$generator = new RandomGenerator();
|
||||||
$member->RememberLoginToken = $generator->generateHash('sha1');
|
$member->RememberLoginToken = $generator->generateHash('sha1');
|
||||||
Cookie::set('alc_enc', $member->ID . ':' . $token, 90, null, null, false, true);
|
Cookie::set('alc_enc', $member->ID . ':' . $member->RememberLoginToken, 90, null, null, false, true);
|
||||||
|
|
||||||
$member->NumVisit++;
|
$member->NumVisit++;
|
||||||
$member->write();
|
$member->write();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user