aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-04-11 12:37:59 +0100
committerEdmund von der Burg <evdb@mysociety.org>2011-04-11 12:37:59 +0100
commit6c675d28e4e170ef1fc1d33e5985b706e7431675 (patch)
tree983c700369eea38ecb1f3b5d73d928405ad6303a /perllib/FixMyStreet/App/Controller
parent71ae36012ab91254910247a48824983c3d6a8f37 (diff)
Added 'uri_for_email' method and switched some tokens over to it
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index c32508cc5..4e077f32b 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -253,7 +253,7 @@ sub report_import : Path('/import') {
->create( { scope => 'partial', data => $report->id } );
$c->stash->{report} = $report;
- $c->stash->{token_url} = $c->uri_for( '/L', $token->token );
+ $c->stash->{token_url} = $c->uri_for_email( '/L', $token->token );
my $sender = mySociety::Config::get('CONTACT_EMAIL');
$sender =~ s/team/fms-DO-NOT-REPLY/;
@@ -1182,7 +1182,7 @@ sub redirect_or_confirm_creation : Private {
my $token =
$c->model("DB::Token")
->create( { scope => 'problem', data => $report->id } );
- $c->stash->{token_url} = $c->uri_for( '/P', $token->token );
+ $c->stash->{token_url} = $c->uri_for_email( '/P', $token->token );
$c->send_email( 'problem-confirm.txt', { to => $report->user->email } );
# tell user that they've been sent an email