diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-11-06 07:29:41 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-11-06 07:29:43 +0000 |
commit | f5fdcabddad82510fbaff75e13e1f63e0f8d01f8 (patch) | |
tree | 43bd8b3a0f7d849ea8d83c784cebfa3ef32be134 | |
parent | f3836beb9226ef7c22cefbb01673d72ce532e87c (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.pm | 2 |
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'; } |