From 4daeb630c097e1fc1b309b3bc03886db6572a250 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 15 Jun 2024 15:35:00 -0400 Subject: [PATCH] content/join: fix breakage due to oc removal --- content/join.html | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/content/join.html b/content/join.html index 76b0d69..5fbcb89 100644 --- a/content/join.html +++ b/content/join.html @@ -26,20 +26,31 @@ var baseurl = 'https://lab.ilot.io/api/v4/projects/99/issues?&labels=Request'; var emptyfield = document.getElementById("emptyfield").value; var mathspamtrap = document.getElementById("math-spam-trap").value; + var agreetoterms = document.getElementById("agree-to-terms").value; var email = document.getElementById("email").value; + if(agreetoterms != "agree-to-terms") { + alert("Registration requires agreement of Code of Conduct"); + return false; + } + + if(!email) { + alert("Email cannot be empty"); + return false; + } + if(emptyfield) { - alert("Empty field should be empty") + alert("Empty field should 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; } @@ -51,9 +62,11 @@ var howfound = document.getElementById("how-found").value; var howfound = howfound.replace (/^/,'How I found ilot: '); var howfound = howfound.replace(/\r?\n/g, "%0A%0A"); - var ocuser = document.getElementById("oc-user").value; - var ocuser = ocuser.replace (/^/,'OpenCollective Profile: '); - var description = name + "%0A%0A" + aboutme + "%0A%0A" + howfound + "%0A%0A" + ocuser; + // add back on oc is setup + // var ocuser = document.getElementById("oc-user").value; + // var ocuser = ocuser.replace (/^/,'OpenCollective Profile: '); + // var description = name + "%0A%0A" + aboutme + "%0A%0A" + howfound + "%0A%0A" + ocuser; + var description = name + "%0A%0A" + aboutme + "%0A%0A" + howfound; var url = baseurl.concat("&title=", email, "&description=", description); console.log('Description:', description); @@ -117,7 +130,7 @@

Code of Conduct:

New members must also agree to our Code of Conduct and must be over the age of consent.

-

I am over 18, and have read, understood and agree to the terms of use and engagement as written in the Code of Conduct. A summary of the code is below; please be sure to review the full Code via the link.

+

I am over 18, and have read, understood and agree to the terms of use and engagement as written in the Code of Conduct. A summary of the code is below; please be sure to review the full Code via the link.

The Code of Conduct is a living document that outlines acceptable behaviour when members use ilot's Nextcloud, Mastodon, GitLab, and all other spaces governed by the co-op. ilot adopts the “co-op values”: self-responsibility, democracy, equality, equity, and solidarity. Our members believe in the ethical values of honesty, openness, social responsibility, and caring for others. We also follow the rest of the ICA co-op principles.

We welcome anyone able to use our services and willing to accept the responsibilities of membership, regardless of qualities such as gender identity or expression, sexual orientation, disability, mental illness, neuro(a)typicality, physical appearance, body size, age, race, nationality, ethnicity, socioeconomic status, family structure, spirituality, religion (or lack thereof), education, or other personal traits.

We particularly celebrate diversity and do not tolerate bigotry, prejudice or supremacy of any kind. Diverse opinions on politics, religion, and other matters are welcome as long as they align with our core values. Let there be no confusion, ilot is anti-racist, anti-fascist, and anti-transphobic. Moderators will take action on posts that contravene this Code of Conduct.