From d636df8da13f43c8f1efd2de3dac9df2ae4430f9 Mon Sep 17 00:00:00 2001 From: Shubhrajyoti Dey Date: Sun, 28 Jan 2024 23:28:55 +0530 Subject: [PATCH] Fixed abort --- handler/middleware.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handler/middleware.go b/handler/middleware.go index 4c3573d..923a65a 100644 --- a/handler/middleware.go +++ b/handler/middleware.go @@ -24,5 +24,7 @@ func (h *Handler) GinVerifyStudent(ctx *gin.Context) { if student != nil { ctx.Set(constants.SESSION_STUDENT, student) ctx.Next() + } else { + ctx.Abort() } }