如何在JSON用户API中使用POST将密码值传递给wordpress

问题描述 投票:0回答:1

我正在尝试使用ReactJS和WordPress创建注册页面。要创建用户,我使用名为JSON User API的插件。

链接:https://wordpress.org/plugins/json-api-user/

我像这样通过POST请求传递密码

https://localhost:8080/api/user/register/?username=test&[email protected]&password=test&nonce=0d1faff3b5&insecure=cool

它创建了用户,但是密码没有保存,我需要在wordpress仪表板上手动生成密码


wordpress-dashboard-user-setting

有没有办法禁用WordPress的生成密码或直接将密码保存到WordPress?

reactjs wordpress jwt wordpress-rest-api
1个回答
0
投票

我刚刚在https://wordpress.org/plugins/json-api-user/查阅了API文档

据说对于方法注册,您可以传递GET变量'user_pass'。我从下面的源中包括了快照。

https://localhost:8080/api/user/register/?username=test&[email protected]&user_pass=test&nonce=0d1faff3b5&insecure=cool

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.