Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
user-reg
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
Krish Moodbidri
user-reg
Commits
8e81b1be
Commit
8e81b1be
authored
4 years ago
by
Krish Moodbidri
Browse files
Options
Downloads
Patches
Plain Diff
version0.1
parent
82cdcc7d
No related branches found
No related tags found
No related merge requests found
Pipeline
#3122
failed with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
app/templates/auth/SignUp.html
+2
-0
2 additions, 0 deletions
app/templates/auth/SignUp.html
run.py
+1
-1
1 addition, 1 deletion
run.py
tasks.py
+2
-1
2 additions, 1 deletion
tasks.py
vars.py
+3
-3
3 additions, 3 deletions
vars.py
with
8 additions
and
5 deletions
app/templates/auth/SignUp.html
+
2
−
0
View file @
8e81b1be
...
...
@@ -92,6 +92,8 @@
<div
class=
"signUpContainer"
>
<label><b><label
for=
"username"
>
Blazer Id:
</label><br></b></label>
<input
class=
"form-control"
id=
"bid"
name=
"bid"
placeholder=
"Enter BlazerId"
required=
""
type=
"text"
>
<label><b><label
for=
"email"
>
Email Id:
</label><br></b></label>
<input
class=
"form-control"
id=
"email"
name=
"email"
placeholder=
"Enter Email Id"
required=
""
type=
"text"
pattern=
"[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$"
>
<label><b><label
for=
"fullname"
>
Full Name:
</label><br></b></label>
<input
class=
"form-control"
id=
"fullname"
name=
"fullname"
placeholder=
"Enter Full Name"
required=
""
type=
"text"
>
<label><b><label
for=
"reason"
>
Reason for Requesting Account:
</label><br></b></label>
...
...
This diff is collapsed.
Click to expand it.
run.py
+
1
−
1
View file @
8e81b1be
...
...
@@ -36,7 +36,7 @@ def request_account(json, methods=['GET', 'POST']):
room
=
str
(
session
[
'
uid
'
])
print
(
"
Room: {}
"
.
format
(
room
))
try
:
tasks
.
celery_create_account
.
delay
(
json
[
'
username
'
],
json
[
'
fullname
'
],
json
[
'
reason
'
],
session
=
room
)
tasks
.
celery_create_account
.
delay
(
json
[
'
username
'
],
json
[
'
email
'
],
json
[
'
fullname
'
],
json
[
'
reason
'
],
session
=
room
)
except
Exception
as
e
:
print
(
time
.
strftime
(
"
%m-%d-%Y_%H:%M:%S
"
)
+
"
\t
Error in account creation:
"
,
e
)
socketio
.
emit
(
"
Account creation failed
"
,
room
)
...
...
This diff is collapsed.
Click to expand it.
tasks.py
+
2
−
1
View file @
8e81b1be
...
...
@@ -24,6 +24,7 @@ def celery_create_account(username, fullname, reason, session):
print
(
time
.
strftime
(
"
%m-%d-%Y_%H:%M:%S
"
)
+
'
\t
User
'
+
username
+
'
added to queue
'
)
send_msg
(
'
creating account
'
,
room
)
print
(
username
)
subprocess
.
call
([
"
/opt/rabbitmq_agents/flask_producer.py
"
,
"
ohpc_account_create
"
,
username
])
subprocess
.
call
([
"
/opt/rabbitmq_agents/create_account.py
"
,
username
,
email
,
fullname
,
reason
])
print
(
username
+
email
+
fullname
+
reason
)
print
(
time
.
strftime
(
"
%m-%d-%Y_%H:%M:%S
"
)
+
'
\t
Account successfully created for
'
+
username
)
send_msg
(
'
account ready
'
,
room
)
This diff is collapsed.
Click to expand it.
vars.py
+
3
−
3
View file @
8e81b1be
id
=
''
password
=
''
key
=
''
id
=
'
reggie
'
password
=
'
reggie
'
key
=
'
1234
'
broker_url
=
'
amqp://
'
+
id
+
'
:
'
+
password
+
'
@ohpc:5672/
'
message_queue
=
broker_url
+
'
socketio
'
default_referrer
=
"
https://docs.uabgrid.uab.edu/wiki/Cheaha_Quick_Start
"
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