File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,6 @@ the ``PasswordDigest`` header value matches with the user's password.
214
214
use Symfony\Component\Security\Core\Exception\NonceExpiredException;
215
215
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
216
216
use AppBundle\Security\Authentication\Token\WsseUserToken;
217
- use Symfony\Component\Security\Core\Util\StringUtils;
218
217
219
218
class WsseProvider implements AuthenticationProviderInterface
220
219
{
@@ -273,7 +272,7 @@ the ``PasswordDigest`` header value matches with the user's password.
273
272
// Validate Secret
274
273
$expected = base64_encode(sha1(base64_decode($nonce).$created.$secret, true));
275
274
276
- return StringUtils::equals ($expected, $digest);
275
+ return hash_equals ($expected, $digest);
277
276
}
278
277
279
278
public function supports(TokenInterface $token)
You can’t perform that action at this time.
0 commit comments