aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/auth.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-06-15 20:14:51 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-06-20 18:13:04 +0100
commit4deacd970890447947704692d55bea0a2b3d14ec (patch)
tree3bc517215313b522a6bb649d155e90705b137e6d /t/app/controller/auth.t
parent99a5a6bb34da2afacb25b7348e5a4e1d5a913eb8 (diff)
Improve CSRF tokens and add to more forms.
Diffstat (limited to 't/app/controller/auth.t')
-rw-r--r--t/app/controller/auth.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/app/controller/auth.t b/t/app/controller/auth.t
index 235a3af7e..9b3d9468a 100644
--- a/t/app/controller/auth.t
+++ b/t/app/controller/auth.t
@@ -128,7 +128,7 @@ $mech->not_logged_in_ok;
ok my $form = $mech->form_name('change_password'),
"found change password form";
is_deeply [ sort grep { $_ } map { $_->name } $form->inputs ], #
- [ 'confirm', 'new_password' ],
+ [ 'confirm', 'new_password', 'token' ],
"check we got expected fields (ie not old_password)";
# check the various ways the form can be wrong