Commit be53509d authored by Daniel W Bond's avatar Daniel W Bond
Browse files

a relatively safer way of doing things in the rare case of human error

parent 463fd102
......@@ -104,7 +104,9 @@ def create_user(tree):
user.email = email_str
# Password is a required User object field, though doesn't matter for our
# purposes because all user auth is handled through CAS, not Django's login.
user.set_password('cas_used_instead')
# That said, we're using a random string, just to be on the safe side.
irrelevant_password = User.objects.make_random_password()
user.set_password(irrelevant_password)
user.save()
print("Added user's email, %s." % email_str)
......
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