summaryrefslogtreecommitdiffstats
path: root/Core/Authentication/RememberMe
diff options
context:
space:
mode:
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)) {