Rename profile image hash seed to better describe what it is.

This commit is contained in:
Diana Huang
2020-02-19 13:01:51 -05:00
parent 5b6feccffd
commit 2f019c4d23
5 changed files with 8 additions and 9 deletions

View File

@@ -35,7 +35,7 @@ def _make_profile_image_name(username):
Returns the user-specific part of the image filename, based on a hash of
the username.
"""
hash_input = settings.PROFILE_IMAGE_SECRET_KEY + username
hash_input = settings.PROFILE_IMAGE_HASH_SEED + username
return hashlib.md5(hash_input.encode('utf-8')).hexdigest()