diff options
author | Jesús Espino <jespinog@gmail.com> | 2015-02-17 12:49:10 +0100 |
---|---|---|
committer | Jesús Espino <jespinog@gmail.com> | 2015-02-17 12:49:10 +0100 |
commit | 979544b1c01503313f1258373f400cc0b148dd2d (patch) | |
tree | b3bc46263d1eacec1fbb1fbaa0458d00651f4c26 | |
parent | c7961612ab69a84ee791b14f9f094c0d6a683752 (diff) | |
download | taiga-contrib-ldap-auth-979544b1c01503313f1258373f400cc0b148dd2d.zip |
Moving response generation from auth plugin services to auth api
-rw-r--r-- | taiga_contrib_ldap_auth/services.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/taiga_contrib_ldap_auth/services.py b/taiga_contrib_ldap_auth/services.py index a5fd068..a16e9db 100644 --- a/taiga_contrib_ldap_auth/services.py +++ b/taiga_contrib_ldap_auth/services.py @@ -18,7 +18,6 @@ from django.db import transaction as tx from django.apps import apps from taiga.base.utils.slug import slugify_uniquely -from taiga.base import response from taiga.auth.services import make_auth_response_data from taiga.auth.signals import user_registered as user_registered_signal @@ -58,4 +57,4 @@ def ldap_login_func(request): email, full_name = connector.login(username=username, password=password) user = ldap_register(username=username, email=email, full_name=full_name) data = make_auth_response_data(user) - return response.Ok(data) + return data |