diff options
author | Bulat Shakirzyanov <mallluhuct@gmail.com> | 2011-03-04 13:26:08 -0500 |
---|---|---|
committer | Bulat Shakirzyanov <mallluhuct@gmail.com> | 2011-03-04 13:26:08 -0500 |
commit | 9848b10fa739bae1a9512fafa2d00f06a99e3f9d (patch) | |
tree | c1b08b44b2e4fac38e52ddc4a260ec2c47b5129b /Core | |
parent | a45d4a21c023980a2d652234d7068a477a20f6e8 (diff) | |
download | symfony-security-9848b10fa739bae1a9512fafa2d00f06a99e3f9d.zip symfony-security-9848b10fa739bae1a9512fafa2d00f06a99e3f9d.tar.gz symfony-security-9848b10fa739bae1a9512fafa2d00f06a99e3f9d.tar.bz2 |
[Security] added the 'key' attribute of RememberMeToken to serialized string to be stored in session
Diffstat (limited to 'Core')
-rw-r--r-- | Core/Authentication/Token/RememberMeToken.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Core/Authentication/Token/RememberMeToken.php b/Core/Authentication/Token/RememberMeToken.php index 8ec3063..8ade136 100644 --- a/Core/Authentication/Token/RememberMeToken.php +++ b/Core/Authentication/Token/RememberMeToken.php @@ -66,4 +66,21 @@ class RememberMeToken extends Token { $this->persistentToken = $persistentToken; } + + + /** + * {@inheritdoc} + */ + public function serialize() + { + return serialize(array($this->user, $this->credentials, $this->authenticated, $this->roles, $this->immutable, $this->providerKey, $this->attributes, $this->key)); + } + + /** + * {@inheritdoc} + */ + public function unserialize($serialized) + { + list($this->user, $this->credentials, $this->authenticated, $this->roles, $this->immutable, $this->providerKey, $this->attributes, $this->key) = unserialize($serialized); + } }
\ No newline at end of file |