diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-06 09:20:38 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-06-06 09:20:38 +0100 |
commit | 819a95ae17f59f1732379926f9738caeb9ff046b (patch) | |
tree | 743c52675d1738618557f46f853ac46dd8b8530f /perllib/FixMyStreet/App/Controller/Tokens.pm | |
parent | e26bc99396d3eaefc3fd7d81c010dc4028767690 (diff) | |
parent | b388fd0be5296426225089ed188b3c1cdd802415 (diff) |
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Tokens.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Tokens.pm | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Tokens.pm b/perllib/FixMyStreet/App/Controller/Tokens.pm index 792c875fd..92a44e756 100644 --- a/perllib/FixMyStreet/App/Controller/Tokens.pm +++ b/perllib/FixMyStreet/App/Controller/Tokens.pm @@ -4,8 +4,6 @@ use namespace::autoclean; BEGIN { extends 'Catalyst::Controller'; } -use FixMyStreet::Alert; - =head1 NAME FixMyStreet::App::Controller::Tokens - Handle auth tokens @@ -57,15 +55,8 @@ sub confirm_problem : Path('/P') { ) if $problem->state eq 'unconfirmed'; # Subscribe problem reporter to email updates - my $alert = $c->model('DB::Alert')->find_or_create( - { - user => $problem->user, - alert_type => 'new_updates', - cobrand => $problem->cobrand, - cobrand_data => $problem->cobrand_data, - parameter => $problem->id - } - )->confirm; + $c->stash->{report} = $c->stash->{problem}; + $c->forward( '/report/new/create_reporter_alert' ); # log the problem creation user in to the site $c->authenticate( { email => $problem->user->email }, 'no_password' ); |