Fix dup err logic
All checks were successful
Build Backend (NixCN CMS) TeamCity build finished
Build Frontend (NixCN CMS) TeamCity build finished

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-02 12:37:27 +08:00
parent cbec9bf2b3
commit bd8eecbc7d
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ func JWTAuth() gin.HandlerFunc {
return
}
if err == nil && uid == "" {
if uid == "" {
c.Set("user_id", "")
c.Next()
return