Skip to content
Snippets Groups Projects
Commit 91f2aad1 authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Remove username value added, as well as the parameter username passed in render_template

parent 6dd7cc06
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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