diff options
Diffstat (limited to 'askbot/deps/django_authopenid/views.py')
-rw-r--r-- | askbot/deps/django_authopenid/views.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/askbot/deps/django_authopenid/views.py b/askbot/deps/django_authopenid/views.py index a5dcee57..ba208b85 100644 --- a/askbot/deps/django_authopenid/views.py +++ b/askbot/deps/django_authopenid/views.py @@ -918,6 +918,10 @@ def register(request, login_provider_name=None, user_identifier=None): if 'ldap_user_info' in request.session: user_info = request.session['ldap_user_info'] + #we take this info from the user input where + #they can override the default provided by LDAP + user_info['ldap_username'] = username + user_info['email'] = email user = ldap_create_user(user_info).user del request.session['ldap_user_info'] login(request, user) |