I have Registration.html fail, which contains registration form. The other failure is in KinveyRequester.js
function registerUser(e) {
e.preventDefault();
let userData = {
username: $("#registerUsername").val(),
password: $("#registerPassword").val()
};
$.ajax({
method: "POST",
url: kinveyBaseUrl + '/user/' + kinveyAppKey,
headers: kinveyAppAuthHeaders,
data: userData,
success: registerSuccess,
error: handleAjaxError
});
function registerSuccess(userInfo) {
saveAuthInSession(userInfo);
showInfo("User Successfully Registered");
}
The Question is:
How can i bind and when i clicked "Register" button it runs correctly and register a user. Here is the Register.html fail