Commit c52123de authored by Sven Lukrafka's avatar Sven Lukrafka

Fix bug where Wrong http status code was send after creating user

parent 642a2f11
......@@ -75,7 +75,7 @@ class Custom_Selfregrequest(AddRequest):
ldap_entry_wrapper = LDAPUser()
ldap_entry_wrapper.generate_entry_from_add_request(self.ldap_entry)
ldap_entry_wrapper.dn = self.distinguished_name
return Response(True, None, self.ldap_entry, type(self))
return Response(True, None, ldap_entry_wrapper, type(self))
else:
return Response(False, ldap.ALREADY_EXISTS, self.ldap_entry, type(self))
......
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