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
Krish Moodbidri
self-reg-form
Commits
18315b11
Commit
18315b11
authored
Apr 19, 2022
by
Krish Moodbidri
Browse files
Merge branch 'fix-aup-hide' into 'master'
Feat-disable-aup See merge request
rc/self-reg-form!24
parents
dd82b66e
5b3ecd6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/templates/auth/SignUp.html
View file @
18315b11
...
...
@@ -97,9 +97,11 @@
</div>
<br>
<div
class=
"col-md-7 col-sm-7 my-col"
>
<!--
<br><input class="checks" id ="agree" type="checkbox" name="agree" value="agree" onchange= check() />Agree to proceed<br/>
--!>
<button class="btn btn-danger btn-md" id="cancel" name="cancel" type="button" onClick="renderDom('Account Creation Cancelled','{{ cancel_msg |safe }}', null)">Cancel</button>
<button
class=
"btn btn-primary btn-md"
disabled
id=
"submit"
name=
"submit"
type=
"button"
value=
"Submit"
onclick=
"displayloading1();request_account()"
>
Create Account
</button>
<button class="btn btn-primary btn-md" id="submit" name="submit" type="button" value="Submit" onclick="displayloading1();request_account()"> Create Account</button>
</div>
</form>
</div>
...
...
tasks.py
View file @
18315b11
...
...
@@ -72,13 +72,13 @@ def celery_create_account(json, session):
email
=
json
[
'email'
]
fullname
=
json
[
'fullname'
]
reason
=
json
[
'reason'
]
aup
=
json
[
'aup'
]
#
aup= json['aup']
queuename
=
rc_util
.
encode_name
(
username
)
print
(
time
.
strftime
(
"%m-%d-%Y_%H:%M:%S"
)
+
'
\t
User '
+
username
+
' added to queue'
)
send_msg
(
'creating account'
,
room
)
print
(
username
)
rc_util
.
add_account
(
username
,
queuename
,
email
,
fullname
,
reason
,
aup
)
rc_util
.
add_account
(
username
,
queuename
,
email
,
fullname
,
reason
)
print
(
'sent account info'
)
print
(
'Waiting for completion...'
)
rc_util
.
consume
(
queuename
,
routing_key
=
f
'complete.
{
queuename
}
'
,
callback
=
gen_f
(
room
))
...
...
Write
Preview
Supports
Markdown
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