Your issue/question:
I’ve been trying to use jQuery to get the value of the input fields on the user creation page. I’m 100% sure i’m right but somehow i have only gotten the val() for the reconfirm_password, but not the password nor username.
This is my script to get those data:
var email = $(input[name='username']").val();
var pass = $(input[name='password']").val();
var cpass = $("input[name='reconfirm-password']").val();
var user_data = {
"Email": email,
"Password": pass,
"ConfirmPassword": cpass
};
console.log(user_data);
What you expect to achieve
I’m trying to build an email verification plug-in which would force new users to verify their email address before gaining access to the marketplace - because Arcadier doesn’t have this implemented by default.
Your issue/question: I’ve been trying to use jQuery to get the value of the input fields on the user creation page. I’m 100% sure i’m right but somehow i have only gotten the val() for the
reconfirm_password
, but not the password nor username.This is my script to get those data:
What you expect to achieve
I’m trying to build an email verification plug-in which would force new users to verify their email address before gaining access to the marketplace - because Arcadier doesn’t have this implemented by default.
What happens instead
Assuming I put
Your system/software details Chrome on Windows 10