diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-07-01 13:28:56 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-07-01 13:28:56 +0100 |
commit | 2611f65707cff0416e59360d64d26c298881103d (patch) | |
tree | 8f1802994d5ab1668d22affb0049212de5cca199 /perllib/FixMyStreet/App/Controller/Report/Update.pm | |
parent | 20eaad234b9c237cd809164a207d2f352013e3c0 (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/Update.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/Update.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm index 9400b3c87..85a29c2ea 100644 --- a/perllib/FixMyStreet/App/Controller/Report/Update.pm +++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm @@ -112,7 +112,7 @@ sub process_user : Private { unless $update->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', [ $email ] ) ) { $c->stash->{field_errors}->{password} = _('There was a problem with your email/password combination. Please try again.'); return 1; |