1
General Discussion / new captif portal authentification
« on: March 23, 2018, 10:04:51 am »
hello everybody
i am looking for new aut methode new user should be able to connecte with their email which is gonna be stored in database with their ip and mac adresse
i started changing the portal to ad him somes new form for imail input and checkbox but i can't find the the post precess script that take data store them and grant access
it's supposed to be a php file i think but i can't find him
and in the portal's html file it s wroten that the data are send using post metod of ajax to an url and ot not a file
thanks
i am looking for new aut methode new user should be able to connecte with their email which is gonna be stored in database with their ip and mac adresse
i started changing the portal to ad him somes new form for imail input and checkbox but i can't find the the post precess script that take data store them and grant access
it's supposed to be a php file i think but i can't find him
and in the portal's html file it s wroten that the data are send using post metod of ajax to an url and ot not a file
Code: [Select]
$("#signin_anon").click(function (event) {
event.preventDefault();
// hide alerts
$("#alertMSG").addClass("hidden");
// try to login
$.ajax({
type: "POST",
url: "/api/captiveportal/access/logon/" + zoneid + "/",
dataType:"json",
data:{ user: '', password: '' }
}).done(function(data) {
// redirect on successful login
if (data['clientState'] == 'AUTHORIZED') {
if (getURLparams()['redirurl'] != undefined) {
window.location = 'http://'+getURLparams()['redirurl']+'?refresh';
} else {
window.location.reload();
}
} else {
$("#inputUsername").val("");
$("#inputPassword").val("");
$("#errorMSGtext").html("login failed");
$("#alertMSG").removeClass("hidden");
}
}).fail(function(){
$("#errorMSGtext").html("unable to connect to authentication server");
$("#alertMSG").removeClass("hidden");
});
});
please can you help me to find that file or explain me how it work to modify post form scriptthanks