From 8235adbecdf09ffe2e8b7a04a38d0be2d86fd5d4 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sun, 8 Apr 2018 01:07:41 +0100 Subject: Easier debugging and optimised imports Simply set FLASK_DEBUG=1 in your env to skip OAuth checks --- pysite/oauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pysite/oauth.py') diff --git a/pysite/oauth.py b/pysite/oauth.py index ef86aa8a..86a2024d 100644 --- a/pysite/oauth.py +++ b/pysite/oauth.py @@ -84,4 +84,4 @@ class OauthBackend(BaseBackend): def logout(self): sess_id = session.get("session_id") if sess_id and self.db.get(OAUTH_DATABASE, sess_id): # If user exists in db, - self.db.delete(OAUTH_DATABASE, sess_id) # remove them (at least, their session) + self.db.delete(OAUTH_DATABASE, sess_id) # remove them (at least, their session) -- cgit v1.2.3