aa
This commit is contained in:
@@ -81,9 +81,6 @@ 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user