BUGFIX: Member::autoLogin() not setting alc_enc properly. PATCH via simon_w. FIXES: #6646.

This commit is contained in:
Will Rossiter 2011-05-30 10:04:55 +12:00
parent 3588cefa30
commit ef6432d647

View File

@ -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();