From f045515fc2fd0af0eed9a415e9ce92ef3a4332f8 Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Wed, 15 Jul 2020 22:10:11 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9ABackend=20verification=20code=20is?= =?UTF-8?q?=20empty=20Verification=20error=20message=20description=20is=20?= =?UTF-8?q?inaccurate(#163)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/jwtauth/jwtauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/jwtauth/jwtauth.go b/pkg/jwtauth/jwtauth.go index 2649fa66..7c206f88 100644 --- a/pkg/jwtauth/jwtauth.go +++ b/pkg/jwtauth/jwtauth.go @@ -152,7 +152,7 @@ var ( ErrMissingAuthenticatorFunc = errors.New("ginJWTMiddleware.Authenticator func is undefined") // ErrMissingLoginValues indicates a user tried to authenticate without username or password - ErrMissingLoginValues = errors.New("missing Username or Password") + ErrMissingLoginValues = errors.New("missing Username or Password or Code") // ErrFailedAuthentication indicates authentication failed, could be faulty username or password ErrFailedAuthentication = errors.New("incorrect Username or Password")