1b.app
Link copied -

Consultation on generating a restapi password via API

There is a method /api/contact-login/json/
It transmits the username and hash password of the user for login in the personal account
So you need to make an API method in which the user id, phone number, email and new login and password will be transmitted in the usual form, and in response it should give a new hash password
Can this method be improved?
Original question is available on version: ru https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор

Answers:

/api/contact-update/json/
userlogin+userpass fields. The /api/contact-login/json/ method does not accept any password hash, it accepts a normal password
13.09.2021, 14:04
Original comment available on version: ru


anonymous duck
OneBox production
Employee wrote:
/api/contact-update/json/
userlogin+userpass fields. The /api/contact-login/json/ method does not accept any password hash, it accepts a normal password

method /api/contact-login/json/ accepts restapi user password
here is an example request
https://crm.test.ua/api/contact-login/json/?login=restapi&password=431fc63c4...
In the userpassword parameter
Is it then possible to add in the /api/contact-update/json/ method so that the user's password is transmitted to restapi in the response?
13.09.2021, 14:08
https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор Original comment available on version: ru


Strilec Anton Nikolaevich
KTS
Employee
KTS wrote:
method /api/contact-login/json/ accepts restapi user password

where do you get userpassword now?
13.09.2021, 14:15
Original comment available on version: ru


anonymous duck
OneBox production
Employee wrote:

Strilec Anton Nikolaevich
KTS
Employee
KTS wrote:
method /api/contact-login/json/ accepts restapi user password

where do you get userpassword now?

We generate it with a variable when sending a letter [restapi_password]
13.09.2021, 14:41
https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор Original comment available on version: ru


Strilec Anton Nikolaevich
KTS
Employee
KTS wrote:
Is it then possible to add in the /api/contact-update/json/ method so that the user's password is transmitted to restapi in the response?

can be done?
14.09.2021, 12:08
https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор Original comment available on version: ru

Yes, in an hour we will do it in the /api/contact-update/json/ method
15.09.2021, 13:15
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment