Commit 25ea8b29 by kimth

Use LMS secret key to seed anonymizer

parent f7c87aa7
......@@ -175,7 +175,8 @@ def _get_module(user, request, location, student_module_cache, course_id, positi
return None
# Anonymized student identifier
h = hashlib.md5() # TODO: Seed with LMS secret key
h = hashlib.md5()
h.update(settings.SECRET_KEY)
h.update(str(user.id))
anonymous_student_id = h.hexdigest()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment