Let "Pay fines online" POST an authtoken
authorJeff Godin <jgodin@tadl.org>
Thu, 26 Jul 2012 06:45:40 +0000 (02:45 -0400)
committerJeff Godin <jgodin@tadl.org>
Thu, 26 Jul 2012 06:45:40 +0000 (02:45 -0400)
By instruction the "Pay fines online" link/button to POST an
authtoken to pay.cgi, we eliminate the need for the user to log in
again before submitting payment.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
templates_tadlskin/opac/myopac/main.tt2

index bd6d3e0..55c8ef5 100644 (file)
             class="opac-button" />
     </div>
     [% END %]
-    [% IF ctx.fines.grocery.size OR ctx.fines.circulation.size %]
-    <div class="pad-top-ten">
-        <a href="https://www.tadl.org/go/pay" class="tbutton small tadlblue"><span>Pay fines online</span></a>
-    </div>
-    [% END %]
 </form>
+[% IF ctx.fines.grocery.size OR ctx.fines.circulation.size %]
+<div class="pad-top-ten">
+<form method="POST" action="https://www.tadl.org/pay/pay.cgi">
+<input type="hidden" name="ses" value="[% ctx.authtoken %]" />
+<span class="tbutton small tadlblue"><input type="submit" class="tbutton small tadlblue" value="Pay fines online" /></span>
+</form>
+</div>
+[% END %]
 [% END %]