summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Schmitt <schmittjoh@gmail.com>2011-03-05 13:51:52 +0100
committerJohannes Schmitt <schmittjoh@gmail.com>2011-03-05 13:51:52 +0100
commit91085b8148fe4b55c3483560fa0eb7a0a74704b3 (patch)
tree2cfd96e716fc2e96188df4575e83c8d2c143f75e
parentea5659f0c5243bacf199ee40758928e9e92db031 (diff)
parent9848b10fa739bae1a9512fafa2d00f06a99e3f9d (diff)
downloadsymfony-security-91085b8148fe4b55c3483560fa0eb7a0a74704b3.zip
symfony-security-91085b8148fe4b55c3483560fa0eb7a0a74704b3.tar.gz
symfony-security-91085b8148fe4b55c3483560fa0eb7a0a74704b3.tar.bz2
Merge branch 'opensky-hotfix/remember-me-token-fix' into security
-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