Closed hammy275 closed 4 years ago
There should probably also be a rate limit (configurable, of course) for handing out permanent tokens, to prevent a bad actor from rapidly filling a hard drive or similar. This would not be implemented if we went with the 1 permanent token per account system.
Added in commit https://github.com/hammy3502/comp-status/commit/d34ac7696d73b3e98d87473df7dbb382274f8f5d . Manual deletion of old perma-tokens from the db is required.
Since permanent tokens literally last forever, we need to take some measures to prevent a giant amount of them from being generated. Ideas include: