From d0ae2a420905dbd0b79141d88e2c47956d1d65b2 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 20 Sep 2017 14:36:12 +0100 Subject: Add ability to log in on /auth via text. A confirmation code is sent via Twilio to be entered on the site. --- perllib/FixMyStreet/App/Controller/Auth/Profile.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perllib/FixMyStreet/App/Controller/Auth/Profile.pm') 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; -- cgit v1.2.3