作者 yangfu

修改: 用户密码修改

... ... @@ -179,7 +179,7 @@ func ChangePassword(header *protocol.RequestHeader, request *protocol.ChangePass
transactionContext.RollbackTransaction()
}()
rsp = &protocol.ChangePasswordResponse{}
if err = UserAuthService.ChangeUserPassword(header.UserId, request.NewPwd, request.OldPwd, fmt.Sprintf("%v", header.SimNum)); err != nil {
if err = UserAuthService.ChangeUserPassword(header.UserId, request.NewPwd, request.OldPwd, request.Phone); err != nil {
err = protocol.NewCustomMessage(1, err.Error())
return
}
... ...
... ... @@ -76,6 +76,7 @@ type ChangePasswordRequest struct {
NewPwd string `json:"newPwd" valid:"Required"`
ConfirmPwd string `json:"confirmPwd" valid:"Required"`
OldPwd string `json:"oldPwd" valid:"Required"`
Phone string `json:"phone" valid:"Required"`
}
type ChangePasswordResponse struct {
}
... ...