From 91f2aad16a49a1644c6732f51acccc171f7fb313 Mon Sep 17 00:00:00 2001 From: Ravi Tripathi <ravi89@uab.edu> Date: Thu, 5 Mar 2020 19:00:43 +0000 Subject: [PATCH] Remove username value added, as well as the parameter username passed in render_template --- app/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 2a12479..aa6e838 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -21,8 +21,9 @@ def create_app(config_name): def index(): global return_url - if 'username' not in session: - session['username'] = "name_test" + str(random.randint(0, 10000)) + #if 'username' not in session: + # session['username'] = "name_test" + str(random.randint(0, 10000)) + # #session['username'] = session['bid'] if 'uid' not in session: session['uid']=str(uuid.uuid4()) @@ -30,7 +31,8 @@ def create_app(config_name): if "redir" in request.args and return_url == "": # check for redir arg in url return_url = request.args.get("redir") or "/pun/sys/dashboard" - return render_template('auth/SignUp.html', user=session['username'], room_id=session['uid']) + return render_template('auth/SignUp.html', room_id=session['uid']) + #return render_template('auth/SignUp.html', user=session['username'], room_id=session['uid']) # misc page error catching @app.errorhandler(403) -- GitLab