I have a custom sign up form for my site. In addition to having members approved there is also a password given to people (there is an existing off-site membership) that needs to be entered, verified, before they can submit their membership request.
If they don’t put in the correct site password then a different message and button appears - contact us.
This has all worked perfectly, however someone has now applied for membership who doesn’t have the page passcode and has submitted and their membership is now for approval.
Is there an error in my code? I can’t replicate the problem, each time it works perfectly for me. Or is there somewhere else that they might be applying for membership that I don’t know about.
Any help anyone can give would be so appreciated because I am completed stumped.
Thanks.
import wixData from 'wix-data';
$w.onReady(function () {
});
export function enterpassword_click(event) {
if ($w('#sitepassword').value === 'lincoln') {
$w('#submitbutton').show();
$w("#enterpassword").hide();
$w('#incorrectbutton').hide();
$w("#incorrectextstatement").hide();
}
else {
$w('#submitbutton').hide();
$w("#enterpassword").hide();
$w('#incorrectbutton').show();
$w("#incorrectextstatement").show();
}
}
$w.onReady(function () {
$w("#confirmpassword1").inputType = "password";
$w("#sitepassword").inputType = "password";
$w('#emailInput').onInput( (event) => {
checkInputValues(); } );
$w('#password').onInput( (event) => {
checkInputValues(); } );
$w('#confirmpassword1').onInput( (event) => {
checkInputValues() } );
function checkInputValues() {
let mail3 = $w('#password').value;
let mail4 = $w('#confirmpassword1').value;
if(mail3 === mail4) {
$w('#validationMessages2').hide(); }
else {
$w('#validationMessages2').show();
}}
});
export function submitbutton_click(event) {
$w("#confirmtext").show();
}