Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DO NOT MERGE THIS
NYU's rules on account health/safety are not explicit on whether or not third parties may register for courses on your behalf, but pretty strongly imply that admin does not condone sharing your username and password with third parties (e.g. Schedge), and also seem to imply that admin wouldn't be very excited with its students maintaining an application which has access to other students' logins.
Of course, you can use this code as inspiration for future projects that execute locally from your own computer, but this code cannot be added to Schedge proper, because even if NYU doesn't prohibit it explicitly, we should not poke the bear.
See https://www.nyu.edu/about/policies-guidelines-compliance/policies-and-guidelines/netid-accounts-access.html for more information.
P.S. As an additional aside, even if you NYU allowed us to register on behalf of students, this code uses a bypass around MFA which the original author found. Don't merge this.
Credits
This code was written by @Kn99HN , but wasn't used in Schedge due to concerns about NYU's policies on account safety. It was later removed in order to prevent any kind of future compliance problems.