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,