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

Combine index and SignUp routes

parent 01bb4296
No related branches found
No related tags found
No related merge requests found
......@@ -37,23 +37,16 @@ def create_app(config_name):
return redirect(return_url, 302)
@app.route('/')
@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
return redirect(url_for("SignUp", user=user))
@app.route('/thing/', methods=['GET', 'POST'])
def SignUp():
return_url = request.args.get("redir")[0] or "/pun/sys/dashboard"
user = request.remote_user
if request.method == 'GET':
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