diff --git a/business/auth2/authprovider/password/password.go b/business/auth2/authprovider/password/password.go index 5c5f97d17..9360804bf 100644 --- a/business/auth2/authprovider/password/password.go +++ b/business/auth2/authprovider/password/password.go @@ -81,6 +81,9 @@ func (a *Auther) encryptPassword(password, salt string) string { } func (a *Auther) checkPassword(authBind *model.AuthBind, passMD5 string) (err error) { + fmt.Println("1111111111111111111111", a.encryptPassword(passMD5, authBind.AuthSecret2)) + fmt.Println("2222222222222222222", authBind.AuthSecret) + if authBind.AuthSecret != a.encryptPassword(passMD5, authBind.AuthSecret2) { return ErrUserAndPassNotMatch }