Create Login Class javascript & php (AJAX)

Asked

Viewed 70 times

1

Guys I have a big doubt regarding the javascript es6 to create a login class, my intention was to organize more code only I do not know where to start :p, I apologize for my lack of knowledge on the subject but I try to look here for a light.

I am using this pattern to create my functions using jquery & php ajax; .

var LOGIN;

LOGIN = {

Auth: function () { Aqui o código }
Logoff: function () { Aqui o código }

}
LOGIN.Auth();
  • paste the other codes, as your question is javascript + ajax + php. Here we help and do not create and provide you the ready code you need, we answer questions.

  • You commented on JS class, but the section you posted is not one, which was quite confusing. It also quotes PHP, but doesn’t describe what it does: do you have any API in access management PHP? If so, add your details to the question

  • I apologize friend what I wanted to say and if you have how to improve the modularizarão of the code was what I wanted to say.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.