# XXX send me where I came from
redirect_to('/')
+ def logout(self):
+ """Log user out."""
+
+ if 'user_id' in session:
+ del session['user_id']
+ session.save()
+
+ # XXX success message
+ # XXX send me where I came from
+ redirect_to('/')
+
def register(self):
"""Logging in with an unrecognized identity URL redirects here."""