diff --git a/route/v1/user.go b/route/v1/user.go index bcf34e4..98133cc 100644 --- a/route/v1/user.go +++ b/route/v1/user.go @@ -711,7 +711,7 @@ func Set_Name_Pwd(c *gin.Context) { } user := model2.UserDBModel{} user.UserName = username - user.Password = encryption.GetMD5ByStr(config.UserInfo.PWD) + user.Password = encryption.GetMD5ByStr(pwd) user.Role = "admin" user = service.MyService.User().CreateUser(user)