Commit d8233859 authored by Romain Loth's avatar Romain Loth

minor bugfixes for registration of return users

parent 2600b277
...@@ -276,6 +276,6 @@ def doors_register(email, password, name, config=REALCONFIG): ...@@ -276,6 +276,6 @@ def doors_register(email, password, name, config=REALCONFIG):
# eg doors_response.content = b'{"status":"registration email sent", # eg doors_response.content = b'{"status":"registration email sent",
# "email":"john@locke.com"}'' # "email":"john@locke.com"}''
answer = loads(doors_response.content.decode()) answer = loads(doors_response.content.decode())
return answer return answer['userID']
else: else:
return None return None
...@@ -116,6 +116,12 @@ function miniregValidate(self) { ...@@ -116,6 +116,12 @@ function miniregValidate(self) {
self.elSubmitBtn.disabled = !self.passStatus self.elSubmitBtn.disabled = !self.passStatus
} }
function showMessageAndSubmit() {
returnForm.elMainMessage.style.display = "block"
returnForm.elMainMessage.innerHTML = "Registering with ISCPIF Doors and sending validation email..."
returnForm.elForm.submit()
}
// trigger auth changes (email always autocompleted for return_user) // trigger auth changes (email always autocompleted for return_user)
returnForm.elEmail.dispatchEvent(new CustomEvent('change')) returnForm.elEmail.dispatchEvent(new CustomEvent('change'))
......
...@@ -26,8 +26,10 @@ ...@@ -26,8 +26,10 @@
Welcome to your <b>archived profile</b> page, Welcome to your <b>archived profile</b> page,
<strong> <strong>
{{ return_user.info.hon_title or '' }} {{ return_user.info.hon_title or '' }}
{{ return_user.info.first_name }}
{{ return_user.info.middle_name or '' }}
{{ return_user.info.last_name }} {{ return_user.info.last_name }}
</strong> ! </strong>
</span> </span>
</p> </p>
</div> </div>
...@@ -61,8 +63,9 @@ ...@@ -61,8 +63,9 @@
<div class="uform-white readonly" id="profile_uform"> <div class="uform-white readonly" id="profile_uform">
<form id="comex_claim_profile_form" enctype="multipart/form-data" <!-- this form is only used for styling
method="post" onsubmit="console.info('submitted')"> (no submit mechanism necessary) -->
<form id="comex_claim_profile_form">
<!-- basic name infos --> <!-- basic name infos -->
...@@ -477,7 +480,7 @@ ...@@ -477,7 +480,7 @@
<img src="{{ (return_user.pic_src | safe) if return_user.pic_src else ''}}" class="our-vcard-img"> <img src="{{ (return_user.pic_src | safe) if return_user.pic_src else ''}}" class="our-vcard-img">
<ul> <ul>
<li class=bigger> <li class=bigger>
<b>{{ return_user.info.hon_title }} <b>{{ return_user.info.hon_title or '' }}
{{ return_user.info.first_name }} {{ return_user.info.first_name }}
<!-- TODO mid initials --> <!-- TODO mid initials -->
{{ return_user.info.last_name }}</b> {{ return_user.info.last_name }}</b>
...@@ -563,9 +566,9 @@ ...@@ -563,9 +566,9 @@
<!-- == S U B M I T == --> <!-- == S U B M I T == -->
<button class="btn btn-lg btn-success" style="float:right" <button class="btn btn-lg btn-success" style="float:left;margin: 0 2em"
id="form_submit" type=button disabled id="form_submit" type=button disabled
onclick="returnForm.elForm.submit()"> onclick="showMessageAndSubmit()">
Submit your account renewal Submit your account renewal
</button> </button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment