mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Disable IndieAuth for now
This commit is contained in:
parent
cc5896f520
commit
070e39bdfe
1 changed files with 2 additions and 2 deletions
4
app.py
4
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'])
|
||||
|
|
Loading…
Reference in a new issue