× Requests and support related to jBackend.

SSL and login

More
7 years 7 months ago #5622 by jesusp
Replied by jesusp on topic SSL and login

Not clear which is the question...


It is secure ? or u need other ssl for login ?

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #5623 by admin
Replied by admin on topic SSL and login
Once you have the SSL enable on the POST action (when you send your credentials) you are secure enough...

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #5788 by brody182
Replied by brody182 on topic SSL and login
what does you jQuery code look like?

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #5790 by admin
Replied by admin on topic SSL and login
Sorry, I don't understand your question. Do you need an example with jQuery for what?

Thanks,
Luigi

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #5793 by brody182
Replied by brody182 on topic SSL and login
user login

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #5794 by admin
Replied by admin on topic SSL and login
Something like this:
var credentials = {
    "username": "usr123",
    "password": "pass123"
};

$.ajax({
    type: "POST",
    url: "<endpoint><end-point>?action=post&module=user&resource=login",
    data: JSON.stringify(credentials),
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    success: function(data){alert(data);},
    failure: function(errMsg) {
        alert(errMsg);
    }
});

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.119 seconds