Osclass Support Forums
Osclass plugin support => Rest API Plugin => Topic started 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)
{"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?
-
You can encode password and check with password field on user record.
-
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
-
You would need to check in UserAcrions, probably md5, Bcryot or similar