Login Implementation with username password via Things Service for mobile application Thingworx
I am developing a mobile app that communicates with TWX via REST API. I have created MobileConnector_TH which having services that pull the data and revert it to mobile via HTTP Rest API.
Problem statement:-
I have one service written in MobileConnector_TH - validateUser(Username, Password)
Which contains the following code
var params = {
url: me.IPUrl+"/Thingworx/action-login?OrganizationName="+organization+"&thingworx-form-userid="+username+"&thingworx-form-password="+password+"&x-thingworx-session=true" /* STRING */,
contentType: "text/html" /* STRING */
};
// result: STRING
var result = Resources["ContentLoaderFunctions"].GetText(params);
This returns HTML webpage data into a string. I am unable to find any specific scenario to validate username&Password via Service. It showing the same result with the wrong password/username.

