Please post all pre-sales questions of all products on this forum

validate username/password in external app

  • Alan Sawyer
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 4 weeks ago #157479 by Alan Sawyer
validate username/password in external app was created by Alan Sawyer
I want to use Membership Pro on my website to allow users to pay for memberships to my other app which is external to Joomla.

For my external web app, I'm thinking I could ask for username (email) and password, then is there someway in php to validate what membership plan they have and that the password matched what was in Membership Pro?

Thanks

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

More
1 year 4 weeks ago #157480 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic validate username/password in external app
Hello Alan

Unfortunately, this is not supported at the moment. While you can provide ID of the user and the system will give you IDs of the active subscription plan, the extension does not have a way to validate username and password of the user yet

Tuab

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

  • Alan Sawyer
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 4 weeks ago #157481 by Alan Sawyer
Replied by Alan Sawyer on topic validate username/password in external app
I think Membership Pro has an option to store username/passwords in MP tables instead of joomla tables. If that is correct would it be possible to use a MP piece of script that I could pass username and plain text password and get back ids if they validate?

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

More
1 year 4 weeks ago #157482 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic validate username/password in external app
Hi Alan

No, Membership Pro does not store username and password on it own. Username and password is actually stores by Joomla users database so that it could be used by every extensions. As you know, password is encrypted, so the only way is calling login method to check if that username and password is valid...

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

More
1 year 4 weeks ago #157483 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic validate username/password in external app
Somehow, it could still being validated I think. Just login user and if it is success, return the subscription for that valid user

But it would still require writing custom code.
The following user(s) said Thank You: Alan Sawyer

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

Moderators: Tuan Pham NgocGiang Dinh TruongMr. Dam