summaryrefslogtreecommitdiffstats
path: root/Core
diff options
context:
space:
mode:
authorBulat Shakirzyanov <mallluhuct@gmail.com>2011-03-04 13:26:08 -0500
committerBulat Shakirzyanov <mallluhuct@gmail.com>2011-03-04 13:26:08 -0500
commit9848b10fa739bae1a9512fafa2d00f06a99e3f9d (patch)
treec1b08b44b2e4fac38e52ddc4a260ec2c47b5129b /Core
parenta45d4a21c023980a2d652234d7068a477a20f6e8 (diff)
downloadsymfony-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.php17
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