return gadget.notifySubmitted({message: 'HTTP ERROR. Registration NOT done.', status: 'error'});
return gadget.notifySubmitted({message: 'HTTP ERROR. Registration NOT done.', status: 'error'});
})
})
//if you want to redirect to a specific page after registration:
//if you want to redirect to a specific page after registration:
/*.push(function () {
.push(function () {
return gadget.redirect({
return gadget.redirect({
command: 'display',
command: 'display',
options: {
options: {
page: "home"
page: "home"
}
}
});
});
})*/;
})
} else {
} else {
return gadget.notifySubmitted({message: 'Misformatted email and / or passwords not matching. Please note that all fields are required!', status: 'error'});
return gadget.notifySubmitted({message: 'Misformatted email and / or passwords not matching. Please note that all fields are required!', status: 'error'});