Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate customer or seller registration when running in REST and CLI environments #533

Closed
ediamin opened this issue Jan 21, 2019 · 1 comment

Comments

@ediamin
Copy link
Contributor

ediamin commented Jan 21, 2019

Dokan is using Dokan_Registration::validate_registration to validate customer and seller registration process only when in browser environment(ie, only when we have $_POST present). We need to validate this process in REST and CLI environment too.

@DastanIqbal
Copy link

DastanIqbal commented Mar 5, 2019

After applying this fix also,I cannot call http://exmple.com/wp-json/dokan/v1/user/register. I checked http://exmple.com/wp-json/ there is no route dokan/v1/user/register. Instead I am getting this response when I am posting

{"code":"rest_no_route","message":"No route was found matching the URL and request method","data":{"status":404}}

Please help. !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants