From 55ca35034e857b8f66966510ca6ac29d154a013c Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Wed, 8 Jun 2022 13:02:10 -0700 Subject: [PATCH] bug fix student login thinks its admin --- controllers/authController.go | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/authController.go b/controllers/authController.go index dd329cb..53b595a 100644 --- a/controllers/authController.go +++ b/controllers/authController.go @@ -799,7 +799,7 @@ func AdminLogin(c *fiber.Ctx) error { func Student(c *fiber.Ctx) error { var sid string - if verified, _ := AuthenticateUser(c, 3); !verified { + if verified, _ := AuthenticateUser(c, 3); verified { var data map[string]string if err := c.BodyParser(&data); err != nil { diff --git a/main.go b/main.go index 48b422c..8d6caf4 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,7 @@ import ( "github.com/gofiber/fiber/v2/middleware/cors" ) -const version string = "\nv0.9.1-Alpha" +const version string = "\nv0.9.2-Alpha" func main() { fmt.Println(version)