API or custom code

  • Thomas Brugmans
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #164167 by Thomas Brugmans
Replied by Thomas Brugmans on topic API or custom code
Hello Tuan I managed to do all what I wanted to do, thanks for helping me.
I have a last problem. I asked my php script to copy the password of the user in another DB (other application) meanwhile the script copy the password hashed in bcrypt or my application works with SHA512. Is it possible for membershippro to send the password not hashed somewhere ? or is there a possibility to take the pwd from the form to hash it in SHA512 before it goes in Joomla process ?

Please Log in or Create an account to join the conversation.

More
10 months 1 week ago #164176 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic API or custom code
Hi Thomas

Not sure where you wrote custom code ? The password in Joomla is encrypted, so there is no way to get your raw password unless somehow, you can get it from post data directly from the form

Tuan

Please Log in or Create an account to join the conversation.

  • Thomas Brugmans
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #164193 by Thomas Brugmans
Replied by Thomas Brugmans on topic API or custom code
I wrote my code there: membershipprodoc.joomservices.com/plugins/script-plugin
But I was wondering as the code is sent to Joomla by the osmembership form, maybe I can use it somehow before it's treated by Joomla

Please Log in or Create an account to join the conversation.

More
10 months 1 week ago #164221 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic API or custom code
Hi Thomas

If you use that method, you can use Subscription Stored Script. Try to get password by getting it directly from input:
Code:
$password = \Joomla\CMS\Factory::getApplication()->input->getString('password1');

But keep in mind that the data will only be available for new subscription. If user is logged in, password data is not available like that

Tuan

Please Log in or Create an account to join the conversation.

  • Thomas Brugmans
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #164248 by Thomas Brugmans
Replied by Thomas Brugmans on topic API or custom code
Tuan, I use 3 of your components on both my project.
You were a key contributors to my last project and OSmembership and your help were clearly a success key in my developpment.

As soon as my project work I will not forget that.
Thanks so much for your help sometimes clearly outside of the scope of your components
Thomas

Please Log in or Create an account to join the conversation.

More
10 months 1 week ago #164277 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic API or custom code
Thanks Thomas. Please continue setting it up and if you have any other questions, please don't hesitate to ask us

Regards,

Tuan

Please Log in or Create an account to join the conversation.