fixed an issue with callbacks
This commit is contained in:
parent
aa795319c5
commit
6151e613f9
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
import os
|
import os
|
||||||
from flask import Flask, render_template, redirect, url_for
|
from flask import Flask, render_template, redirect, request, url_for
|
||||||
from flask_discord import DiscordOAuth2Session, requires_authorization, AccessDenied, Unauthorized
|
from flask_discord import DiscordOAuth2Session, requires_authorization, AccessDenied, Unauthorized
|
||||||
from config import load_config
|
from config import load_config
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ def me():
|
||||||
|
|
||||||
@app.route("/login/")
|
@app.route("/login/")
|
||||||
def login():
|
def login():
|
||||||
|
discord.redirect_uri = request.host + "/callback/"
|
||||||
return discord.create_session(scope=['identify', 'guilds', 'guilds.members.read'])
|
return discord.create_session(scope=['identify', 'guilds', 'guilds.members.read'])
|
||||||
|
|
||||||
@app.route("/logout/")
|
@app.route("/logout/")
|
||||||
|
|
Loading…
Reference in a new issue