debug/fix-incorrect-email-check
This commit is contained in:
1 parent
fe57b7b83e
commit
9bc6a186d0
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user