Commit a7103ff8 by ichuang

switch to PascalCase, remove unnecessary assignment

parent 3eff9ffe
...@@ -280,14 +280,14 @@ def create_account(request, post_override=None): ...@@ -280,14 +280,14 @@ def create_account(request, post_override=None):
# if doing signup for an external authorization, then get email, password, name from the eamap # if doing signup for an external authorization, then get email, password, name from the eamap
# don't use the ones from the form, since the user could have hacked those # don't use the ones from the form, since the user could have hacked those
doExternalAuth = 'ExternalAuthMap' in request.session DoExternalAuth = 'ExternalAuthMap' in request.session
if doExternalAuth: if DoExternalAuth:
eamap = request.session['ExternalAuthMap'] eamap = request.session['ExternalAuthMap']
email = eamap.external_email email = eamap.external_email
name = eamap.external_name name = eamap.external_name
password = eamap.internal_password password = eamap.internal_password
post_vars = dict(post_vars.items()) post_vars = dict(post_vars.items())
post_vars.update(dict(email=email, name=name, password=password, username=post_vars['username'])) post_vars.update(dict(email=email, name=name, password=password))
log.debug('extauth test: post_vars = %s' % post_vars) log.debug('extauth test: post_vars = %s' % post_vars)
# Confirm we have a properly formed request # Confirm we have a properly formed request
...@@ -411,7 +411,7 @@ def create_account(request, post_override=None): ...@@ -411,7 +411,7 @@ def create_account(request, post_override=None):
try_change_enrollment(request) try_change_enrollment(request)
if doExternalAuth: if DoExternalAuth:
eamap.user = login_user eamap.user = login_user
eamap.dtsignup = datetime.datetime.now() eamap.dtsignup = datetime.datetime.now()
eamap.save() eamap.save()
......
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