From 262db00540d8303a2e3fa895060b452981ea70b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 4 Mar 2021 09:55:36 +0800 Subject: [PATCH] aa --- business/auth2/authprovider/password/password.go | 3 +++ 1 file changed, 3 insertions(+) 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 }