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),