Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
rc
self-reg-form
Commits
3cf58cc4
Commit
3cf58cc4
authored
Oct 02, 2020
by
Krish Moodbidri
Browse files
Added Email input & passed it to flask app
parent
45a470d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/templates/auth/SignUp.html
View file @
3cf58cc4
...
@@ -92,6 +92,8 @@
...
@@ -92,6 +92,8 @@
<div
class=
"signUpContainer"
>
<div
class=
"signUpContainer"
>
<label><b><label
for=
"username"
>
Blazer Id:
</label><br></b></label>
<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"
>
<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>
<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"
>
<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>
...
...
run.py
View file @
3cf58cc4
...
@@ -36,7 +36,7 @@ def request_account(json, methods=['GET', 'POST']):
...
@@ -36,7 +36,7 @@ def request_account(json, methods=['GET', 'POST']):
room
=
str
(
session
[
'uid'
])
room
=
str
(
session
[
'uid'
])
print
(
"Room: {}"
.
format
(
room
))
print
(
"Room: {}"
.
format
(
room
))
try
:
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
:
except
Exception
as
e
:
print
(
time
.
strftime
(
"%m-%d-%Y_%H:%M:%S"
)
+
"
\t
Error in account creation: "
,
e
)
print
(
time
.
strftime
(
"%m-%d-%Y_%H:%M:%S"
)
+
"
\t
Error in account creation: "
,
e
)
socketio
.
emit
(
"Account creation failed"
,
room
)
socketio
.
emit
(
"Account creation failed"
,
room
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment