Use proper randomization when generating new API keys.

Previously we were generating API keys deterministically using a hash
of the user's email address; this is clearly not a good long-term
approach.

(imported from commit 14d0c7c9edbc45b3ae1d17a43765ad9726338d4d)
This commit is contained in:
Tim Abbott
2013-05-28 17:59:55 -04:00
parent d92d62412f
commit abd9e4e635
6 changed files with 10 additions and 17 deletions

View File

@@ -2,7 +2,7 @@ from __future__ import absolute_import
from django.conf import settings
from zephyr.lib.initial_password import initial_password, initial_api_key
from zephyr.lib.initial_password import initial_password
from zephyr.models import Realm, Stream, UserProfile, Huddle, \
Subscription, Recipient, Client, Message, \
get_huddle_hash