From 2e421b4441e0623b6aed55d091ccd77ec290872e Mon Sep 17 00:00:00 2001 From: "a624669980@163.com" Date: Wed, 29 Jun 2022 16:09:51 +0800 Subject: [PATCH] Update user.go --- route/v1/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)