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
ac65675b
Commit
ac65675b
authored
5 years ago
by
Mitchell Moore
Browse files
Options
Downloads
Patches
Plain Diff
Fix variable convention
parent
e722ae02
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/static/scripts/function.js
+2
-2
2 additions, 2 deletions
app/static/scripts/function.js
app/templates/auth/SignUp.html
+1
-1
1 addition, 1 deletion
app/templates/auth/SignUp.html
run.py
+2
-2
2 additions, 2 deletions
run.py
with
5 additions
and
5 deletions
app/static/scripts/function.js
+
2
−
2
View file @
ac65675b
...
@@ -16,8 +16,8 @@ function displayloading() {
...
@@ -16,8 +16,8 @@ function displayloading() {
"
<div class=
\"
joyride-modal-bg
\"
style=
\"
display: block;
\"
></div>
"
"
<div class=
\"
joyride-modal-bg
\"
style=
\"
display: block;
\"
></div>
"
}
}
function
socketIO
()
{
function
request_account
()
{
socket
.
emit
(
'
user data
'
,
{
socket
.
emit
(
'
request account
'
,
{
fullname
:
document
.
getElementById
(
"
fullname
"
).
value
,
fullname
:
document
.
getElementById
(
"
fullname
"
).
value
,
reason
:
document
.
getElementById
(
"
reason
"
).
value
,
reason
:
document
.
getElementById
(
"
reason
"
).
value
,
username
:
document
.
getElementById
(
"
username
"
).
innerText
username
:
document
.
getElementById
(
"
username
"
).
innerText
...
...
This diff is collapsed.
Click to expand it.
app/templates/auth/SignUp.html
+
1
−
1
View file @
ac65675b
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
<input
class=
"form-control"
id=
"fullname"
name=
"fullname"
placeholder=
"Enter Full Name"
required=
""
type=
"text"
>
<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>
<label><b><label
for=
"reason"
>
Reason for Requesting Account:
</label><br></b></label>
<textarea
class=
"form-control"
id=
"reason"
name=
"reason"
placeholder=
"Enter Reason for Account Request"
required=
""
></textarea>
<textarea
class=
"form-control"
id=
"reason"
name=
"reason"
placeholder=
"Enter Reason for Account Request"
required=
""
></textarea>
<input
class=
"btn btn-primary btn-block"
id=
"submit"
name=
"submit"
type=
"button"
value=
"Submit"
onclick=
"
socketIO
()"
>
<input
class=
"btn btn-primary btn-block"
id=
"submit"
name=
"submit"
type=
"button"
value=
"Submit"
onclick=
"
request_account
()"
>
<div>
<div>
<strong
id=
"error"
style=
"color: #be051b; text-align: center;"
></strong>
<strong
id=
"error"
style=
"color: #be051b; text-align: center;"
></strong>
...
...
This diff is collapsed.
Click to expand it.
run.py
+
2
−
2
View file @
ac65675b
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
import
os
import
os
import
time
import
time
import
subprocess
import
pika
import
pika
from
flask_socketio
import
SocketIO
from
flask_socketio
import
SocketIO
...
@@ -49,7 +50,6 @@ def create_account(username, fullname, reason):
...
@@ -49,7 +50,6 @@ def create_account(username, fullname, reason):
def
account_confirmation
(
username
):
def
account_confirmation
(
username
):
# Todo: Code to create a consumer based on the username goes here
# Todo: Code to create a consumer based on the username goes here
# Todo: Goal is to have it listening for confirmation.
# Todo: Goal is to have it listening for confirmation.
time
.
sleep
(
5
)
return
True
return
True
...
@@ -59,7 +59,7 @@ def handle_my_custom_event(json, methods=['GET', 'POST']):
...
@@ -59,7 +59,7 @@ def handle_my_custom_event(json, methods=['GET', 'POST']):
print
(
time
.
strftime
(
"
%m-%d-%Y_%H:%M:%S
"
)
+
'
\t
User
'
+
username
+
'
connected.
'
)
print
(
time
.
strftime
(
"
%m-%d-%Y_%H:%M:%S
"
)
+
'
\t
User
'
+
username
+
'
connected.
'
)
@socketio.on
(
'
user data
'
)
@socketio.on
(
'
request account
'
)
def
ingest_data
(
json
,
methods
=
[
'
GET
'
,
'
POST
'
]):
def
ingest_data
(
json
,
methods
=
[
'
GET
'
,
'
POST
'
]):
print
(
time
.
strftime
(
"
%m-%d-%Y_%H:%M:%S
"
)
+
'
\t
Queue request received:
'
+
str
(
json
))
print
(
time
.
strftime
(
"
%m-%d-%Y_%H:%M:%S
"
)
+
'
\t
Queue request received:
'
+
str
(
json
))
...
...
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