aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-11-06 07:29:41 +0000
committerMatthew Somerville <matthew@mysociety.org>2019-11-06 07:29:43 +0000
commitf5fdcabddad82510fbaff75e13e1f63e0f8d01f8 (patch)
tree43bd8b3a0f7d849ea8d83c784cebfa3ef32be134
parentf3836beb9226ef7c22cefbb01673d72ce532e87c (diff)
Fix about template name being passed as username.
As this detach() comes from an action with an argument, that argument then got picked up as the override username.
-rw-r--r--perllib/FixMyStreet/Cobrand/FixMyStreet.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
index c69156c64..401ef8c45 100644
--- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
+++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
@@ -258,7 +258,7 @@ sub about_hook {
if ($body) {
# Send confirmation email (hopefully)
$c->stash->{template} = 'auth/general.html';
- $c->detach('/auth/general');
+ $c->detach('/auth/general', []);
} else {
$c->stash->{error} = 'bad_email';
}