Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
xuzhenhao
/
xuzhenhao-dev-icesimbapolysdklogin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8d3be031
authored
Dec 06, 2017
by
xuzhenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复了没有密文储存密码的buyg
1 parent
db9ed37c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/loginserver/models/user.go
src/loginserver/models/user.go
View file @
8d3be03
...
...
@@ -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
,
userP
assword
)
_
,
err
=
db
.
Engine
.
Exec
(
sql
,
userName
,
p
assword
)
if
err
!=
nil
{
return
"104001"
,
err
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment