Commit 8d3be031 by xuzhenhao

修复了没有密文储存密码的buyg

1 parent db9ed37c
Showing with 2 additions and 1 deletions
......@@ -111,8 +111,9 @@ func ChangeUserPassword(userName string, originPassword string, newPassword stri
//添加用户
func InsertUser(userName string, userPassword string) (result interface{}, err error) {
password := MD5(userPassword)
sql := ` insert into icesimba_polysdk_user(user_name,user_password) values(?,?) `
_, err = db.Engine.Exec(sql, userName, userPassword)
_, err = db.Engine.Exec(sql, userName, password)
if err != nil {
return "104001", err
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!