function _forgotPass() {
var user = $('#inputUser').val();
if (!user) {
avideoAlert("Scusa!", "Devi informare qual è il tuo utente!", "error");
return false;
}
var capcha = "";
var span = document.createElement("span");
span.innerHTML = "Ti invieremo un link, alla tua e-mail, per recuperare la tua password!" + capcha;
swal({
title: "Are you sure?",
content: span,
icon: "warning",
buttons: true,
dangerMode: true,
}).then(function(willDelete) {
console.log('forgotPassword', willDelete);
if (willDelete) {
modal.showPleaseWait();
$.ajax({
url: webSiteRootURL+'objects/userRecoverPass.php',
data: {
"user": $('#inputUser').val(),
"captcha": $('#capcha_6a2fc3b769e2aText').val() },
type: 'post',
success: function(response) {
if (response.error) {
avideoAlert("Errore", response.error, "error");
} else {
avideoAlert("Email inviata", "Ti abbiamo inviato un'e-mail con le istruzioni", "success");
}
modal.hidePleaseWait();
}
});
}
});
eval("");
}