From a2c7ff326299bb54594f7bef1e25b599dc63214d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= Date: Wed, 26 Jan 2022 16:27:38 +0800 Subject: [PATCH] :pencil2: Invalid Token --- server/middlewares/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/middlewares/auth.go b/server/middlewares/auth.go index 066fde15..b2689107 100644 --- a/server/middlewares/auth.go +++ b/server/middlewares/auth.go @@ -19,7 +19,7 @@ func Auth(c *gin.Context) { //} //if token != utils.GetMD5Encode(password.Value) { if token != conf.Token { - common.ErrorStrResp(c, "Wrong password", 401) + common.ErrorStrResp(c, "Invalid token", 401) return } c.Next()