From: Michael Andreen Date: Sun, 27 Mar 2016 12:42:30 +0000 (+0200) Subject: Use default template when smsconfirm is called accidently X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=commitdiff_plain;h=fad7141dbbfb2d235f8cadd98d96cbed9b7c4be6 Use default template when smsconfirm is called accidently --- diff --git a/lib/NDWeb/Controller/Root.pm b/lib/NDWeb/Controller/Root.pm index 370264b..29a0cbc 100644 --- a/lib/NDWeb/Controller/Root.pm +++ b/lib/NDWeb/Controller/Root.pm @@ -95,6 +95,8 @@ sub smsconfirm : Local { my ($self, $c) = @_; my $dbh = $c->model; + $c->stash(template => 'default.tt2'); + return unless $c->req->param('apiMsgId'); my $sms = $dbh->prepare(q{ @@ -108,7 +110,6 @@ WHERE msgid = $1 ,$c->req->param('charge') ,$c->req->param('timestamp')); - $c->stash(template => 'default.tt2'); }