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;
if(!agreetoterms) {
alert("Registration requires agreement of Code of Conduct");
alert("Registration requires agreement of Code of Conduct.");
return false;
}
if(!email) {
alert("Email cannot be empty");
alert("Email cannot be empty.");
return false;
}
if(mathspamtrap != "9") {
alert("Wrong math answer");
alert("Wrong math answer.");
return false;
}
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;
}
@ -68,7 +68,7 @@
.then(response => response.json())
.then(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 => {
console.error('Error:', error)

View file

@ -27,22 +27,22 @@
var email = document.getElementById("email").value;
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;
}
if(!email) {
alert("Le courriel ne peut pas être vide");
alert("Le courriel ne peut pas être vide.");
return false;
}
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;
}
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;
}
@ -68,7 +68,7 @@
.then(response => response.json())
.then(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 => {
console.error('Error:', error)