Various small fixes for Forced Username

This commit is contained in:
2010-03-14 10:37:15 +00:00
parent 72ba19678d
commit 2fa56de8c7
4 changed files with 7 additions and 9 deletions

View File

@@ -97,7 +97,8 @@ def service_add(request):
acc.user = request.user
acc.service = form.cleaned_data['service']
acc.password = hashlib.sha1('%s%s' % form.cleaned_data['service'].name, request.user.username).hexdigest()
acc.character = form.cleaned_data['character']
acc.password = hashlib.sha1('%s%s' % (form.cleaned_data['service'].name, settings.SECRET_KEY)).hexdigest()
try:
acc.save()