Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
account_init_cleanup
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mitchell Moore
account_init_cleanup
Commits
91f2aad1
Commit
91f2aad1
authored
5 years ago
by
Ravi Tripathi
Browse files
Options
Downloads
Patches
Plain Diff
Remove username value added, as well as the parameter username passed in render_template
parent
6dd7cc06
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/__init__.py
+5
-3
5 additions, 3 deletions
app/__init__.py
with
5 additions
and
3 deletions
app/__init__.py
+
5
−
3
View file @
91f2aad1
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment