Skip to content
Snippets Groups Projects
Commit 31e1f781 authored by Mitchell Moore's avatar Mitchell Moore
Browse files

(fix) get redir args

parent 4ad2f3c8
No related branches found
No related tags found
No related merge requests found
......@@ -40,13 +40,14 @@ def create_app(config_name):
@app.route('/', methods=['GET', 'POST'])
def index():
global return_url
return_url = request.args.get("redir")[0] or "/pun/sys/dashboard"
user = request.remote_user
if request.method == 'GET':
global return_url
return_url = request.args.get("redir")[0] or "/pun/sys/dashboard"
return render_template("auth/SignUp.html", user=user)
if request.method == 'POST':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment