Authentication using login form
FactorySolution opened this issue · 2 comments
FactorySolution commented
Hello.
How to pass my form login variables to pdo authentication.
using like rest api is all ok, but i can log in using form.
thanks
tuupola commented
This middleware implements HTTP Basic Authentication which uses browsers builtin login dialogs. You might however try some of the workarounds found from Google search.
fabiodepin commented
Use jQuery's beforeSend callback to add an HTTP header with the authentication information:
beforeSend: function (xhr) { xhr.setRequestHeader ("Authorization", "Basic " + btoa(username + ":" + password)); },