diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2015-03-27 11:22:45 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-03-27 11:22:45 +0100 |
commit | 02b20eccaf64c7c3c138f89e91f0a83c90cebfa2 (patch) | |
tree | 92b38f7476eb97535b7a15e676ac505bb174ddcb /Http/RememberMe | |
parent | dcb1880d23868a6f9934a87bb6766d4002b484a3 (diff) | |
parent | 94465e02e58f9a17b29dd4afbcac5c02af4bf7e0 (diff) | |
download | symfony-security-02b20eccaf64c7c3c138f89e91f0a83c90cebfa2.zip symfony-security-02b20eccaf64c7c3c138f89e91f0a83c90cebfa2.tar.gz symfony-security-02b20eccaf64c7c3c138f89e91f0a83c90cebfa2.tar.bz2 |
Merge branch '2.6' into 2.7
* 2.6:
CS: fixes
Translator component has default domain for null implemented no need to have default translation domain logic in 3 different places
[Form] [TwigBridge] Bootstrap layout whitespace control
[travis] Kill tests when a new commit has been pushed
fixed CS
Change behavior to mirror hash_equals() returning early if there is a length mismatch
CS fixing
Prevent modifying secrets as much as possible
Update StringUtils.php
Whitespace
Update StringUtils.php
StringUtils::equals() arguments in RememberMe Cookie based implementation are confused
CS: general fixes
[SecurityBundle] removed a duplicated service definition and simplified others.
Conflicts:
src/Symfony/Bundle/SecurityBundle/Resources/config/security_listeners.xml
Diffstat (limited to 'Http/RememberMe')
-rw-r--r-- | Http/RememberMe/TokenBasedRememberMeServices.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Http/RememberMe/TokenBasedRememberMeServices.php b/Http/RememberMe/TokenBasedRememberMeServices.php index 9042963..3fe39ac 100644 --- a/Http/RememberMe/TokenBasedRememberMeServices.php +++ b/Http/RememberMe/TokenBasedRememberMeServices.php @@ -54,7 +54,7 @@ class TokenBasedRememberMeServices extends AbstractRememberMeServices throw new \RuntimeException(sprintf('The UserProviderInterface implementation must return an instance of UserInterface, but returned "%s".', get_class($user))); } - if (true !== StringUtils::equals($hash, $this->generateCookieHash($class, $username, $expires, $user->getPassword()))) { + if (true !== StringUtils::equals($this->generateCookieHash($class, $username, $expires, $user->getPassword()), $hash)) { throw new AuthenticationException('The cookie\'s hash is invalid.'); } |