tuupola/slim-basic-auth

Authentication using login form

Closed this issue · 2 comments

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

This middleware implements HTTP Basic Authentication which uses browsers builtin login dialogs. You might however try some of the workarounds found from Google search.

Use jQuery's beforeSend callback to add an HTTP header with the authentication information:

beforeSend: function (xhr) { xhr.setRequestHeader ("Authorization", "Basic " + btoa(username + ":" + password)); },