SSL and login
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
8 years 2 months ago #5622
by jesusp
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 2 months ago #5623
by admin
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.
Less
More
-
Posts: 17
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 3 days ago #5790
by admin
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.
Less
More
-
Posts: 17
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 2 days ago #5794
by admin
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.164 seconds