我正在尝试使用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的生成密码或直接将密码保存到WordPress?
我刚刚在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