News:

Looking for documentation? Take a look on our wiki

Main Menu

How to create vm user by API function

Started by mhs_pro, January 20, 2019, 14:16:30 PM

Previous topic - Next topic

mhs_pro

Hi
I want create user with API function in vm 3

I checked how a user was register
in public_html/administrator/component/com_virtuemart/models/user.php there is a function named store(&$data).
This function checks vRequest::vmCheckToken

How can I fill out the vRequest?


GJC Web Design

is it there when u JSession::getFormToken();  ?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

Use JSession::getFormToken(); to get right form field and add it to the POST  using Joomla or server $_POST before trying to add a user.
Not that this is fully unsafe, to set it,  so you should add a password or private key