aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/Update.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-10-16 12:08:49 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-10-16 12:08:49 +0100
commitd9d2ca67b4feb3f550a432051606fe0df2c3680f (patch)
tree77fafbdf05e7608b98a66f9528b406b2ee0329ec /perllib/FixMyStreet/App/Controller/Report/Update.pm
parent69cd91b70b488ebba89558cbc41d2472ecbbec5a (diff)
parent8a3072bfdc11121da5a11932c248ab13f6f0d315 (diff)
Merge branch 'sms-mssid-error'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/Update.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/Update.pm14
1 files changed, 2 insertions, 12 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm
index 66724f2d1..c28039808 100644
--- a/perllib/FixMyStreet/App/Controller/Report/Update.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm
@@ -521,18 +521,8 @@ sub send_confirmation_text : Private {
sub confirm_by_text : Path('text') {
my ( $self, $c ) = @_;
- my $token = $c->stash->{token} = $c->get_param('token');
- my $code = $c->get_param('code') || '';
-
- my $data = $c->stash->{token_data} = $c->forward('/auth/get_token', [ $token, 'comment' ]) || return;
- if ($data->{code} ne $code) {
- $c->stash->{template} = 'auth/smsform.html';
- $c->stash->{submit_url} = '/report/update/text';
- $c->stash->{incorrect_code} = 1;
- return;
- }
-
- $c->detach('process_confirmation');
+ $c->stash->{submit_url} = '/report/update/text';
+ $c->forward('/auth/phone/code', [ 'comment', '/report/update/process_confirmation' ]);
}
sub process_confirmation : Private {