用户修改属性时的最后修改人从jxadmin改为用户id

用户注册时也记录相应的最后登录信息
This commit is contained in:
gazebo
2019-10-09 11:06:08 +08:00
parent 1c7edc4b86
commit 3855e79809
5 changed files with 25 additions and 18 deletions

View File

@@ -290,7 +290,7 @@ func (c *Auth2Controller) ChangePassword() {
c.callChangePassword(func(params *tAuth2ChangePasswordParams) (retVal interface{}, errCode string, err error) {
authInfo, err := params.Ctx.GetV2AuthInfo()
if err == nil {
err = password.AutherObj.ChangePassword(authInfo.GetID(), params.OldPwd, params.NewPwd)
err = password.AutherObj.ChangePassword(authInfo.GetID(), params.Ctx.GetUserName(), params.OldPwd, params.NewPwd)
}
return retVal, "", err
})