Skip to content

Commit

Permalink
Remove Block Logic for Users with New GitHub Account
Browse files Browse the repository at this point in the history
  • Loading branch information
azimjohn committed Apr 8, 2023
1 parent d982c7d commit 9cd7b60
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions server/jprq.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 9cd7b60

Please sign in to comment.