- fix bug in password.ChangePassword

This commit is contained in:
gazebo
2019-03-05 11:25:56 +08:00
parent a8e92dd92e
commit 12827d08a3

View File

@@ -54,6 +54,7 @@ func (a *Auther) ChangePassword(userID, oldPassMD5, newPassMD5 string) (err erro
} else if dao.IsNoRowsError(err) {
salt := utils.GetUUID()
err = a.AddAuthBind(&model.AuthBind{
UserID: userID,
Type: AuthType,
AuthID: userID,
AuthSecret: a.encryptPassword(newPassMD5, salt),