summaryrefslogtreecommitdiffstats
path: root/Core/Authentication
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2011-07-22 13:37:59 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2011-07-22 13:37:59 +0200
commitba039320edf278a60887c3345a4737b09249cbd4 (patch)
tree0ddb89d7baef75380af2ce81674c62053a384049 /Core/Authentication
parent4f02e874586a07385cf2120c5fbe93c79f9b1a0f (diff)
downloadsymfony-security-ba039320edf278a60887c3345a4737b09249cbd4.zip
symfony-security-ba039320edf278a60887c3345a4737b09249cbd4.tar.gz
symfony-security-ba039320edf278a60887c3345a4737b09249cbd4.tar.bz2
[Security] change a comparison to use a strict comparison
Diffstat (limited to 'Core/Authentication')
-rw-r--r--Core/Authentication/Provider/AnonymousAuthenticationProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Core/Authentication/Provider/AnonymousAuthenticationProvider.php b/Core/Authentication/Provider/AnonymousAuthenticationProvider.php
index c48a27e..ea91075 100644
--- a/Core/Authentication/Provider/AnonymousAuthenticationProvider.php
+++ b/Core/Authentication/Provider/AnonymousAuthenticationProvider.php
@@ -43,7 +43,7 @@ class AnonymousAuthenticationProvider implements AuthenticationProviderInterface
return null;
}
- if ($this->key != $token->getKey()) {
+ if ($this->key !== $token->getKey()) {
throw new BadCredentialsException('The Token does not contain the expected key.');
}