summaryrefslogtreecommitdiffstats
path: root/Core/Authentication/Provider/UserAuthenticationProvider.php
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/Provider/UserAuthenticationProvider.php
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/Provider/UserAuthenticationProvider.php')
-rw-r--r--Core/Authentication/Provider/UserAuthenticationProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Core/Authentication/Provider/UserAuthenticationProvider.php b/Core/Authentication/Provider/UserAuthenticationProvider.php
index b65a16b..a624ccf 100644
--- a/Core/Authentication/Provider/UserAuthenticationProvider.php
+++ b/Core/Authentication/Provider/UserAuthenticationProvider.php
@@ -62,7 +62,7 @@ abstract class UserAuthenticationProvider implements AuthenticationProviderInter
}
$username = $token->getUsername();
- if (empty($username)) {
+ if ('' === $username || null === $username) {
$username = 'NONE_PROVIDED';
}