aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/plugins/ldap/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/plugins/ldap/views.py')
-rw-r--r--mediagoblin/plugins/ldap/views.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/mediagoblin/plugins/ldap/views.py b/mediagoblin/plugins/ldap/views.py
index 217c6d8c..aef1bf56 100644
--- a/mediagoblin/plugins/ldap/views.py
+++ b/mediagoblin/plugins/ldap/views.py
@@ -31,7 +31,8 @@ def login(request):
if request.method == 'POST' and login_form.validate():
l = LDAP()
- username = l.login(login_form.username.data, login_form.password.data)
+ username, email = l.login(login_form.username.data,
+ login_form.password.data)
if username:
user = User.query.filter_by(
@@ -55,8 +56,8 @@ def login(request):
'instance.'))
return redirect(request, 'index')
- register_form = forms.RegisterForm(request.form,
- username=username)
+ register_form = forms.RegisterForm(username=username,
+ email=email)
return render_to_response(
request,