From 12827d08a31dc8814964e871514d983f7f4be7de Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 5 Mar 2019 11:25:56 +0800 Subject: [PATCH] - fix bug in password.ChangePassword --- business/auth2/authprovider/password/password.go | 1 + 1 file changed, 1 insertion(+) diff --git a/business/auth2/authprovider/password/password.go b/business/auth2/authprovider/password/password.go index c051ab4b5..b08ed5a6a 100644 --- a/business/auth2/authprovider/password/password.go +++ b/business/auth2/authprovider/password/password.go @@ -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),