From 9cd7b6050099d48998a02c33c2229c44b16c04e6 Mon Sep 17 00:00:00 2001 From: Azimjon Pulatov <35038240+azimjohn@users.noreply.github.com> Date: Sat, 8 Apr 2023 22:50:15 +0200 Subject: [PATCH] Remove Block Logic for Users with New GitHub Account --- server/jprq.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/server/jprq.go b/server/jprq.go index d7ffc37..f23d17e 100644 --- a/server/jprq.go +++ b/server/jprq.go @@ -113,14 +113,7 @@ func (j *Jprq) serveEventConn(conn net.Conn) error { if err != nil { return events.WriteError(conn, "authentication failed") } - date, err := time.Parse(time.RFC3339, user.JoinedDate) - if err != nil { - return events.WriteError(conn, "Could not parse joined date") - } - if date.Year() > 2022 { - return events.WriteError(conn, "Rejecting login request from user who joined github after 2023; user: %s", user.Login) - } if reason, found := j.blockedUsers[user.ID]; found { return events.WriteError(conn, "your account is blocked for %s", reason) }