Files
Chad Whitacre b1e82c3183 Start a test suite for User; #482
I noticed that we're now using the ORM for the authentication machinery.
I decided to test the User class a bit since we don't want to screw up
auth.
2013-01-25 20:28:01 -05:00

12 lines
312 B
HTML

from aspen import Response
from gittip.orm import db
# ========================================================================== ^L
user = user.sign_out()
back_to = request.headers.get('referer', '/')
request.redirect(back_to)
# ========================================================================== ^L