summaryrefslogtreecommitdiffstats
path: root/Core/Authentication/RememberMe
diff options
context:
space:
mode:
authorChristian Flothmann <christian.flothmann@xabbuh.de>2015-07-21 20:37:10 +0200
committerChristian Flothmann <christian.flothmann@xabbuh.de>2015-07-22 08:52:48 +0200
commit9aab3966fdabe3d6085ce5b1637503b74a7a5ce0 (patch)
tree995f75fd756190826c7a1c5c1cd9b4f2e16125d0 /Core/Authentication/RememberMe
parent1738333e52f972aabad7764e53722c9682354beb (diff)
downloadsymfony-security-9aab3966fdabe3d6085ce5b1637503b74a7a5ce0.zip
symfony-security-9aab3966fdabe3d6085ce5b1637503b74a7a5ce0.tar.gz
symfony-security-9aab3966fdabe3d6085ce5b1637503b74a7a5ce0.tar.bz2
[Security] fix check for empty usernames
Diffstat (limited to 'Core/Authentication/RememberMe')
-rw-r--r--Core/Authentication/RememberMe/PersistentToken.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Core/Authentication/RememberMe/PersistentToken.php b/Core/Authentication/RememberMe/PersistentToken.php
index 92fcb4f..d85572d 100644
--- a/Core/Authentication/RememberMe/PersistentToken.php
+++ b/Core/Authentication/RememberMe/PersistentToken.php
@@ -40,7 +40,7 @@ final class PersistentToken implements PersistentTokenInterface
if (empty($class)) {
throw new \InvalidArgumentException('$class must not be empty.');
}
- if (empty($username)) {
+ if ('' === $username || null === $username) {
throw new \InvalidArgumentException('$username must not be empty.');
}
if (empty($series)) {