gcivil-nyu-org / spring2020-cs-gy-9223-class

2 stars 14 forks source link

Removing useless code & adding event code protection #577

Closed dandipietrantonio closed 4 years ago

dandipietrantonio commented 4 years ago

Description

This PR consists of two main changes. First, a bunch of unused code was deleted. This includes CSS classes, unused views, and other code that is obsolete.

Second, event code protection is now added to all URLs and views. This prevents anyone from accessing the remote instance and stealing data. Previously, protection was only added on get/post requests in view classes in the form of a method decorator. A new function decorator was created to allow for protection of other functions that are outside of the view class itself.