sdelements/django-security

Throttling cache keys are too long.

funkaoshi opened this issue · 1 comments

The keys you can supply to memcache have a maximum length of 255 characters. This makes them too short to store a username and IP address. (The username can be 255 characters itself.) I'm not sure what the best way to get around this is. We could store a (truncated) hash of the username, perhaps?

This was resolved by storing hashed keys.