Osclass Support Forums

Osclass plugin support => Rest API Plugin => Topic started by: Smithtech on August 14, 2023, 03:06:06 AM

Title: API CALL FOR LOGIN and Confirm Password
Post by: Smithtech 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&s_email=testjojo@jojomail.com&s_password=2255554&s_password=2255554 (https://plugins.abprofitrade.eu/oc-content/plugins/rest/api.php?key=test-api-key&type=insert&object=user&action=add&s_name=JojoTest&s_email=testjojo@jojomail.com&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?
Title: Re: API CALL FOR LOGIN and Confirm Password
Post by: MB Themes on August 24, 2023, 03:28:31 PM
You can encode password and check with password field on user record.
Title: Re: API CALL FOR LOGIN and Confirm Password
Post by: Sriram Rajendran 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
Title: Re: API CALL FOR LOGIN and Confirm Password
Post by: MB Themes on December 28, 2023, 06:43:53 PM
You would need to check in UserAcrions, probably md5, Bcryot or similar