*

Smithtech

  • ****
  • 219 posts
API CALL FOR LOGIN and Confirm Password
« on: August 14, 2023, 03:06:06 AM »
1. Please, could you please, provide the API call for User Login?  Not seeing that in the Documentation

2. What is the key/parameter for the "Confirm Password" field? Without that, unable to create a new user via the API call.
For example, this API Call URL to create a new user throws an error: https://plugins.abprofitrade.eu/oc-content/plugins/rest/api.php?key=test-api-key&type=insert&object=user&action=add&s_name=JojoTest&[email protected]&s_password=2255554&s_password=2255554

Code: [Select]
{"status":"ERROR",
"message":"There was problem adding user",
"execution_seconds":"2.066542",
"block_id":56,
"response":"Passwords don't match\n"}

Meanwhile, the passwords match very well.


====
Please, is there another documentation or the one in the backend is the only documentation?

*

MB Themes

Re: API CALL FOR LOGIN and Confirm Password
« Reply #1 on: August 24, 2023, 03:28:31 PM »
You can encode password and check with password field on user record.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sriram Rajendran

  • **
  • 21 posts
  • An Entrepreneur
Re: API CALL FOR LOGIN and Confirm Password
« Reply #2 on: December 28, 2023, 04:59:30 PM »
You can encode password and check with password field on user record.


Hi, can you please let me know what password encryption logic is used by osclass while adding user in DB, so that based on that logic I will try to search the user based on email and the input password if it exists or not

*

MB Themes

Re: API CALL FOR LOGIN and Confirm Password
« Reply #3 on: December 28, 2023, 06:43:53 PM »
You would need to check in UserAcrions, probably md5, Bcryot or similar
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots