Skip to content

Commit e1b3bbd

Browse files
committed
Fix login cookie
1 parent ac8f076 commit e1b3bbd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/AbstractCookieReader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public static function fromGlobals()
3535

3636
protected function _property($property, $default = null)
3737
{
38-
return isset($this->_cookie[$property]) ?
39-
$this->_cookie[$property] : $default;
38+
return isset($this->_cookie->$property) ?
39+
$this->_cookie->$property : $default;
4040
}
4141

4242
public function isPresent()

src/LoginCookie.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ public static function cookieName()
1313

1414
public function getCustomerFid($default = null)
1515
{
16-
return $this->_property('customerFid', $default);
16+
return $this->_property('customer', $default);
1717
}
1818

1919
public function getUserFid($default = null)
2020
{
21-
return $this->_property('userFid', $default);
21+
return $this->_property('user', $default);
2222
}
2323

2424
public function getUsername($default = null)

0 commit comments

Comments
 (0)