From 070e39bdfe9d06ec44383a3f68eea21246a20be9 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Tue, 5 Jun 2018 07:33:17 +0200 Subject: [PATCH] Disable IndieAuth for now --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 227f318..e3cd805 100644 --- a/app.py +++ b/app.py @@ -1354,9 +1354,8 @@ def indieauth_flow(): return redirect(red) -@app.route('/indieauth', methods=['GET', 'POST']) +# @app.route('/indieauth', methods=['GET', 'POST']) def indieauth_endpoint(): - session['logged_in'] = True if request.method == 'GET': if not session.get('logged_in'): return redirect(url_for('login', next=request.url)) @@ -1398,6 +1397,7 @@ def indieauth_endpoint(): abort(403) return + session['logged_in'] = True me = auth['me'] state = auth['state'] scope = ' '.join(auth['scope'])