diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-05 11:23:49 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-05 11:23:49 +0000 |
commit | 7725eff6e3216b74f1cd65e1ca9f432e7008e4e3 (patch) | |
tree | f3768b2972b49146580e8d6c10f3581b714e7da5 | |
parent | e3b49457fa804222d04559fd42b6d56e79f624fe (diff) |
Needed as well.
-rw-r--r-- | perllib/CrossSell.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/perllib/CrossSell.pm b/perllib/CrossSell.pm index e308e2529..3331afb1c 100644 --- a/perllib/CrossSell.pm +++ b/perllib/CrossSell.pm @@ -200,11 +200,11 @@ sub display_advert ($$;$%) { #EOF #unless (defined $data{done_tms} && $data{done_tms}==1) { - #$c->stash->{scratch} = 'advert=news'; - #my $auth_signature = ''; - #unless (defined $data{emailunvalidated} && $data{emailunvalidated}==1) { - # $auth_signature = mySociety::AuthToken::sign_with_shared_secret($email, mySociety::Config::get('AUTH_SHARED_SECRET')); - #} + $c->stash->{scratch} = 'advert=news'; + my $auth_signature = ''; + unless (defined $data{emailunvalidated} && $data{emailunvalidated}==1) { + $auth_signature = mySociety::AuthToken::sign_with_shared_secret($email, mySociety::Config::get('AUTH_SHARED_SECRET')); + } return '<div style="margin: 0 5em; border-top: dotted 1px #666666;">' . display_news_form(email => $email, name => $name, signed_email => $auth_signature) . '</div>'; |