扫码关注官方订阅号
希望源码/Demo已经写好了常用的功能,如:用户登录/注册/修改密码之类的.只要提供一个功能的完整模块,我就能依葫芦画瓢了.
走同样的路,发现不同的人生
/会员找回密码/Controller
public function user_search_password(){ $jsoncode = file_get_contents("php://input"); $arr = array(); $arr = convertUrlQuery($jsoncode); $mobile_phone = $arr['mobile_phone']; $password = $arr['password']; $vo = user_search_password($mobile_phone,$password); if($vo){ $this->apiReturn(200,'SUCCESS',$vo,'json'); }else{ $this->apiReturn(400,'FAIL',$VO,'json'); } }
user_search_password 去数据库修改密码操作就好了 这是通过手机号和密码设置新密码 验证条件在其他方法接口内 客户端进行验证 比如 手机号的有效性,手机验证码验证等 最后提交新密码 进行找回密码 设置新密码操作
thinkphp文档上有 有RESTful 的demo
thinkcmf这个cms可以看一下
强烈建议看看这个使用 Laravel 5.1 phphub web接口
https://github.com/Respect/Rest
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
/会员找回密码/Controller
user_search_password 去数据库修改密码操作就好了
这是通过手机号和密码设置新密码
验证条件在其他方法接口内
客户端进行验证 比如 手机号的有效性,手机验证码验证等
最后提交新密码 进行找回密码 设置新密码操作
thinkphp文档上有 有RESTful 的demo
thinkcmf这个cms可以看一下
强烈建议看看这个
使用 Laravel 5.1 phphub web接口
https://github.com/Respect/Rest