summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorJohannes Schmitt <schmittjoh@gmail.com>2011-05-18 12:54:47 +0200
committerJohannes Schmitt <schmittjoh@gmail.com>2011-05-18 12:54:47 +0200
commit0aa3a442b2b3c4957dcf8a661cbc08eb2030b8a8 (patch)
tree4d9f3b5a1d85ab940d58cc1a887721b69513f30a /Http
parent8d2f62e024f550dd725c761408b5ffb65e0b8f41 (diff)
parent6b3a0ace240ef45f1a74792ca289d98241e4778f (diff)
downloadsymfony-security-0aa3a442b2b3c4957dcf8a661cbc08eb2030b8a8.zip
symfony-security-0aa3a442b2b3c4957dcf8a661cbc08eb2030b8a8.tar.gz
symfony-security-0aa3a442b2b3c4957dcf8a661cbc08eb2030b8a8.tar.bz2
Merge remote branch 'origin/master' into security
Conflicts: src/Symfony/Bundle/FrameworkBundle/Listener/RequestAttributeInitializingListener.php
Diffstat (limited to 'Http')
-rw-r--r--Http/Firewall/UsernamePasswordFormAuthenticationListener.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/Firewall/UsernamePasswordFormAuthenticationListener.php b/Http/Firewall/UsernamePasswordFormAuthenticationListener.php
index 4ad456c..51546c0 100644
--- a/Http/Firewall/UsernamePasswordFormAuthenticationListener.php
+++ b/Http/Firewall/UsernamePasswordFormAuthenticationListener.php
@@ -42,7 +42,7 @@ class UsernamePasswordFormAuthenticationListener extends AbstractAuthenticationL
'username_parameter' => '_username',
'password_parameter' => '_password',
'csrf_parameter' => '_csrf_token',
- 'csrf_page_id' => 'form_login',
+ 'intention' => 'authenticate',
'post_only' => true,
), $options), $successHandler, $failureHandler, $logger, $dispatcher);
@@ -65,7 +65,7 @@ class UsernamePasswordFormAuthenticationListener extends AbstractAuthenticationL
if (null !== $this->csrfProvider) {
$csrfToken = $request->get($this->options['csrf_parameter']);
- if (false === $this->csrfProvider->isCsrfTokenValid($this->options['csrf_page_id'], $csrfToken)) {
+ if (false === $this->csrfProvider->isCsrfTokenValid($this->options['intention'], $csrfToken)) {
throw new InvalidCsrfTokenException('Invalid CSRF token.');
}
}