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

Remove old diagram

parent 9cc85d3b
No related branches found
No related tags found
No related merge requests found
......@@ -14,21 +14,18 @@ def create_app(config_name):
app = Flask(__name__) # initialization of the flask app
Bootstrap(app) # allowing app to use bootstrap
global return_url
return_url = ''
@app.route('/', methods=['GET', 'POST']) # initial route to display the reg page
def index():
global return_url
if 'username' not in session:
session['username'] = "name_test" + str(random.randint(0, 10000))
# session['username'] = request.remote_user
if 'uid' not in session:
session['uid']=str(uuid.uuid4())
if "redir" in request.args and return_url == "": # check for redir arg in url
return_url = request.args.get("redir") or "/pun/sys/dashboard"
if "redir" in request.args and 'return_url' not in session: # check for redir arg in url
session['return_url'] = request.args.get("redir") or "/pun/sys/dashboard"
return render_template('auth/SignUp.html', user=session['username'], room_id=session['uid'])
......
app_flow.png

1.21 MiB

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