X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/29dd9f09e93699ac14cd80ea192794ff04cd8f35..5e8cb14114fb2a6f8b5c7c717c7f6e580ed5a95a:/floof/controllers/account.py?ds=inline diff --git a/floof/controllers/account.py b/floof/controllers/account.py index 0c53a6d..e4f39f3 100644 --- a/floof/controllers/account.py +++ b/floof/controllers/account.py @@ -72,6 +72,17 @@ class AccountController(BaseController): # 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."""