join: migrate registration form to Forgejo backend
This commit is contained in:
parent
b1328e7227
commit
0fb2d046e4
6 changed files with 22 additions and 22 deletions
|
@ -1 +1 @@
|
||||||
Thu Apr 3 22:28:14 UTC 2025
|
Thu Apr 3 22:34:10 UTC 2025
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
00916278f9a3f8044e6b7dd3aeac037260f43553
|
5b6911aeeb30c00b6c8161efaa6fbb436566d77f
|
||||||
|
|
|
@ -116,22 +116,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -157,7 +157,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)
|
||||||
|
|
|
@ -115,22 +115,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,7 +156,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)
|
||||||
|
|
|
@ -98,22 +98,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,7 +139,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)
|
||||||
|
|
|
@ -98,22 +98,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,7 +139,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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue