aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/New.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-07-01 13:28:56 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-07-01 13:28:56 +0100
commit2611f65707cff0416e59360d64d26c298881103d (patch)
tree8f1802994d5ab1668d22affb0049212de5cca199 /perllib/FixMyStreet/App/Controller/Report/New.pm
parent20eaad234b9c237cd809164a207d2f352013e3c0 (diff)
Assume if they've filled in one side of the password form, they're submitting that side.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 3a7d18a1c..a18e36bfd 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -571,7 +571,7 @@ sub process_user : Private {
unless $report->user;
# The user is trying to sign in. We only care about email from the params.
- if ( $c->req->param('submit_sign_in') ) {
+ if ( $c->req->param('submit_sign_in') || $c->req->param('password_sign_in') ) {
unless ( $c->forward( '/auth/sign_in' ) ) {
$c->stash->{field_errors}->{password} = _('There was a problem with your email/password combination. Please try again.');
return 1;