diff --git a/backend/internal/handler/auth.handlers.go b/backend/internal/handler/auth.handlers.go index 6860984..a3f7c9b 100644 --- a/backend/internal/handler/auth.handlers.go +++ b/backend/internal/handler/auth.handlers.go @@ -229,8 +229,7 @@ func VerifyUser() gin.HandlerFunc { ctx.AbortWithStatusJSON(http.StatusBadRequest, utils.ResponseGenerator("Some Error Occured", false)) return } - ctx.AbortWithStatusJSON(http.StatusOK, utils.ResponseGenerator("User Verified Successfullu", true)) - + ctx.JSON(http.StatusOK, utils.ResponseGenerator("User Verified Successfully", true)) } } diff --git a/backend/internal/middleware/isVerified.go b/backend/internal/middleware/isVerified.go index 6ec4572..35fede9 100644 --- a/backend/internal/middleware/isVerified.go +++ b/backend/internal/middleware/isVerified.go @@ -19,7 +19,7 @@ func IsVerified() gin.HandlerFunc { return } if !res.Verified { - ctx.AbortWithStatusJSON(http.StatusForbidden, utils.ResponseGenerator("Resource cannot be accessed without verification", false)) + ctx.AbortWithStatusJSON(http.StatusForbidden, utils.ResponseGenerator("Resource cannot be accessed without verification. Kindly navigate to settings to verify your email", false)) return } ctx.Next()