Compare commits

..

1 commit

Author SHA1 Message Date
5b6911aeeb
join: migrate registration form to Forgejo backend
All checks were successful
/ preview (pull_request) Successful in 38s
2025-04-03 18:33:33 -04:00
2 changed files with 10 additions and 10 deletions

View file

@ -27,22 +27,22 @@
var email = document.getElementById("email").value; var email = document.getElementById("email").value;
if(!agreetoterms) { if(!agreetoterms) {
alert("Registration requires agreement of Code of Conduct"); alert("Registration requires agreement of Code of Conduct.");
return false; return false;
} }
if(!email) { if(!email) {
alert("Email cannot be empty"); alert("Email cannot be empty.");
return false; return false;
} }
if(mathspamtrap != "9") { if(mathspamtrap != "9") {
alert("Wrong math answer"); alert("Wrong math answer.");
return false; return false;
} }
if(await checkDuplicate(email) === true) { if(await checkDuplicate(email) === true) {
alert("This email address has already requested an account"); alert("This email address has already requested an account.");
return false; return false;
} }
@ -68,7 +68,7 @@
.then(response => response.json()) .then(response => response.json())
.then(result => { .then(result => {
console.log('Success:', result); console.log('Success:', result);
alert("Request submitted. A working group member will process your registration shortly. If you receive no contact within seven days of registration, please send an email to support@ilot.io"); alert("Request submitted. A working group member will process your registration shortly. If you receive no contact within seven days of registration, please send an email to support@ilot.io.");
}) })
.catch(error => { .catch(error => {
console.error('Error:', error) console.error('Error:', error)

View file

@ -27,22 +27,22 @@
var email = document.getElementById("email").value; var email = document.getElementById("email").value;
if(!agreetoterms) { if(!agreetoterms) {
alert("Vous devez être d'accord avec notre code de conduite"), alert("Vous devez être en accord avec notre code de conduite.");
return false; return false;
} }
if(!email) { if(!email) {
alert("Le courriel ne peut pas être vide"); alert("Le courriel ne peut pas être vide.");
return false; return false;
} }
if(mathspamtrap != "9") { if(mathspamtrap != "9") {
alert("Pas la bonne réponse mathématique"); alert("Ceci n'est pas la bonne réponse à l'exercise mathématique.");
return false; return false;
} }
if(await checkDuplicate(email) === true) { if(await checkDuplicate(email) === true) {
alert("Ce courriel à déja fait une demande de compte"); alert("Ce courriel à déja fait l'objet d'une demande de compte.");
return false; return false;
} }
@ -68,7 +68,7 @@
.then(response => response.json()) .then(response => response.json())
.then(result => { .then(result => {
console.log('Success:', result); console.log('Success:', result);
alert("Votre demande a été soumis. Un membre d'un groupe de travail va traiter votre demande sous peu. Si vous ne recevez pas de nouvelle d'ici sept jours, contactez-vous via support@ilot.io"); alert("Votre demande a été soumise. Un membre d'un groupe de travail va traiter votre demande sous peu. Si vous ne recevez pas de nouvelle d'ici sept jours, contactez-vous via support@ilot.io.");
}) })
.catch(error => { .catch(error => {
console.error('Error:', error) console.error('Error:', error)