1
0
mirror of https://github.com/TitanEmbeds/Titan.git synced 2025-03-29 20:21:56 +01:00

Empty server manage server list should not automatically log you out, oauth fix

This commit is contained in:
Jeremy Zhang 2017-09-06 20:59:05 +00:00
parent 2f552ca87f
commit 21400679b6

@ -63,9 +63,6 @@ def logout():
@discord_users_only()
def dashboard():
guilds = get_user_managed_servers()
if not guilds:
session["redirect"] = url_for("user.dashboard")
return redirect(url_for("user.logout"))
error = request.args.get("error")
if session["redirect"] and not (error and error == "access_denied"):
redir = session['redirect']