DziennikOcen/public/isLogged.js
2022-01-31 22:23:46 +01:00

12 lines
262 B
JavaScript

var data = {
action: 'is_user_logged_in'
};
jQuery.post("https://kill3rs4.usermd.net/auth", data, function(response) {
if(response == 'yes') {
// user is logged in, do your stuff here
} else {
response.redirect('/wrong');
}
});