From 9bc6a186d0b9b1c5f9ad7e3e0d57f81e40e21437 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Tue, 8 Feb 2022 13:34:40 -0800 Subject: [PATCH] debug/fix-incorrect-email-check --- controllers/updateController.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/updateController.go b/controllers/updateController.go index 9a12cda..27a9590 100644 --- a/controllers/updateController.go +++ b/controllers/updateController.go @@ -340,7 +340,7 @@ func ResetStudentPassword(c *fiber.Ctx) error { }) } - if student.PersonalData.Email == data["email"] { + if student.PersonalData.Email != data["email"] { cancel() return c.Status(fiber.StatusUnauthorized).JSON(fiber.Map{ "success": false,