aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Auth/Profile.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-09-20 14:36:12 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-09-30 15:04:06 +0100
commitd0ae2a420905dbd0b79141d88e2c47956d1d65b2 (patch)
treec6d7abbb7a33fef2fa3af9c5684d61a6adf0eb1f /perllib/FixMyStreet/App/Controller/Auth/Profile.pm
parentbfdae700a840b74595bb4798ae6d50bb9172fa72 (diff)
Add ability to log in on /auth via text.
A confirmation code is sent via Twilio to be entered on the site.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Auth/Profile.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Auth/Profile.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Auth/Profile.pm b/perllib/FixMyStreet/App/Controller/Auth/Profile.pm
index 68c40f9dc..453b4a8a3 100644
--- a/perllib/FixMyStreet/App/Controller/Auth/Profile.pm
+++ b/perllib/FixMyStreet/App/Controller/Auth/Profile.pm
@@ -85,7 +85,7 @@ sub change_email : Path('/auth/change_email') {
$c->forward('/auth/check_csrf_token');
$c->stash->{current_user} = $c->user;
$c->stash->{email_template} = 'change_email.txt';
- $c->forward('/auth/email_sign_in');
+ $c->forward('/auth/email_sign_in', [ $c->get_param('email') ]);
}
__PACKAGE__->meta->make_immutable;