Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
self-reg-form
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Krish Moodbidri
self-reg-form
Commits
20abd8e2
Commit
20abd8e2
authored
3 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Fix redefined-outer-name
parent
d5f3ebb9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks.py
+10
-10
10 additions, 10 deletions
tasks.py
with
10 additions
and
10 deletions
tasks.py
+
10
−
10
View file @
20abd8e2
...
...
@@ -136,20 +136,20 @@ def send_msg(event, room):
@celery.task
def
celery_create_account
(
json
,
session
):
def
celery_create_account
(
msg
,
session
):
"""
This function is used to create account for new users
Input:
json
: json object of all user attributes and session/room
msg
: json object of all user attributes and session/room
Output:
gen_f(room): callback to check for success or failure
"""
room
=
session
username
=
json
[
"
username
"
]
email
=
json
[
"
email
"
]
fullname
=
json
[
"
fullname
"
]
reason
=
json
[
"
reason
"
]
# aup=
json
['aup']
username
=
msg
[
"
username
"
]
email
=
msg
[
"
email
"
]
fullname
=
msg
[
"
fullname
"
]
reason
=
msg
[
"
reason
"
]
# aup=
msg
['aup']
queuename
=
rc_util
.
encode_name
(
username
)
updated_by
=
f
"
{
username
}
"
host
=
vars
.
app_host
...
...
@@ -173,16 +173,16 @@ def celery_create_account(json, session):
@celery.task
def
celery_certify_account
(
json
,
session
):
def
celery_certify_account
(
msg
,
session
):
"""
This function is used to certify account for existing users
Input:
json
: json object of all user attributes and session/room
msg
: json object of all user attributes and session/room
Output:
gen_f(room): callback to check for success or failure
"""
room
=
session
username
=
json
[
"
username
"
]
username
=
msg
[
"
username
"
]
queuename
=
rc_util
.
encode_name
(
username
)
updated_by
=
f
"
{
username
}
"
host
=
vars
.
app_host
...
...
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