✏️ Invalid Token
This commit is contained in:
parent
8fc7c716c0
commit
a2c7ff3262
@ -19,7 +19,7 @@ func Auth(c *gin.Context) {
|
|||||||
//}
|
//}
|
||||||
//if token != utils.GetMD5Encode(password.Value) {
|
//if token != utils.GetMD5Encode(password.Value) {
|
||||||
if token != conf.Token {
|
if token != conf.Token {
|
||||||
common.ErrorStrResp(c, "Wrong password", 401)
|
common.ErrorStrResp(c, "Invalid token", 401)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
c.Next()
|
c.Next()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user