|
@@ -269,16 +269,16 @@ public class UserApiController extends AbstractApiController {
|
|
|
/**
|
|
|
* 通过旧密码设置密码
|
|
|
*
|
|
|
- * @param userId 用户 UID
|
|
|
+ * @param phoneNo 用户 UID
|
|
|
* @return 执行结果
|
|
|
*/
|
|
|
@ApiOperation(value = "通过验证码设置密码", notes = "",httpMethod = "GET")
|
|
|
@GetMapping("/resetPwdByCode")
|
|
|
- public Result<Object> resetPwdByCode(@RequestHeader(value = X_CLIENT_TOKEN_USERID,required = false) Long userId,
|
|
|
+ public Result<Object> resetPwdByCode(@RequestParam("phoneNo") String phoneNo,
|
|
|
@RequestParam("verifyCode") String verifyCode,
|
|
|
@RequestParam("newPwd") String newPwd
|
|
|
) {
|
|
|
- return userService.resetPwdByCode(userId,verifyCode,newPwd);
|
|
|
+ return userService.resetPwdByCode(phoneNo,verifyCode,newPwd);
|
|
|
}
|
|
|
|
|
|
|