mirror of
https://github.com/kennethreitz-archive/www.gittip.com.git
synced 2026-06-21 07:40:58 +00:00
b1e82c3183
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.
12 lines
312 B
HTML
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
|