mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-21 10:12:59 +00:00
修改密码bug修复
This commit is contained in:
@@ -10,13 +10,13 @@ import (
|
||||
|
||||
//设置用户状态参数
|
||||
type StatusReq struct {
|
||||
Id int `p:"userId" v:"required#用户id不能为空"`
|
||||
UserStatus uint `p:"status" v:"required#用户状态不能为空"`
|
||||
Id uint64 `p:"userId" v:"required#用户id不能为空"`
|
||||
UserStatus uint `p:"status" v:"required#用户状态不能为空"`
|
||||
}
|
||||
|
||||
//重置用户密码状态参数
|
||||
type ResetPwdReq struct {
|
||||
Id int `p:"userId" v:"required#用户id不能为空"`
|
||||
Id uint64 `p:"userId" v:"required#用户id不能为空"`
|
||||
Password string `p:"password" v:"required|password#密码不能为空|密码以字母开头,只能包含字母、数字和下划线,长度在6~18之间"`
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ func UpdatePwd(r *ghttp.Request, data *UpdatePwdReq) error {
|
||||
}
|
||||
|
||||
return ResetUserPwd(&user.ResetPwdReq{
|
||||
Id: currentUser["id"].(int),
|
||||
Id: gconv.Uint64(currentUser["id"]),
|
||||
Password: data.NewPassword,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user