Disable IndieAuth for now

This commit is contained in:
Thomas Sileo 2018-06-05 07:33:17 +02:00
parent cc5896f520
commit 070e39bdfe

4
app.py
View file

@ -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'])