feat(header): add self check error banner

This commit is contained in:
Jacky 2025-04-23 14:48:39 +00:00
parent 309ca81ee3
commit 597175940f
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
8 changed files with 187 additions and 55 deletions

View file

@ -18,15 +18,15 @@ func getToken(c *gin.Context) (token string) {
return
}
if token, _ = c.Cookie("token"); token != "" {
return token
}
if token = c.Query("token"); token != "" {
tokenBytes, _ := base64.StdEncoding.DecodeString(token)
return string(tokenBytes)
}
if token, _ = c.Cookie("token"); token != "" {
return token
}
return ""
}