You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In test_per_queue_staff_permissions.py ...
Line 13 : IDENTIFIERS = (1, 2)
Line 34 : for identifier in self.IDENTIFIERS:
Line 44 : user.set_password(identifier)
Line 44 sets the test user's password to the int 1 (or 2). This is fine for the django auth backend, however the ldap backend of Peter Sagerson's excellent django-auth-ldap (https://pythonhosted.org/django-auth-ldap/) throws an error when trying to len(password):
TypeError: object of type 'int' has no len()
A password should always be a string, so maybe we should to this:
Line 44 : user.set_password(str(identifier))
The text was updated successfully, but these errors were encountered:
In test_per_queue_staff_permissions.py ...
Line 13 : IDENTIFIERS = (1, 2)
Line 34 : for identifier in self.IDENTIFIERS:
Line 44 : user.set_password(identifier)
Line 44 sets the test user's password to the int 1 (or 2). This is fine for the django auth backend, however the ldap backend of Peter Sagerson's excellent django-auth-ldap (https://pythonhosted.org/django-auth-ldap/) throws an error when trying to len(password):
TypeError: object of type 'int' has no len()
A password should always be a string, so maybe we should to this:
Line 44 : user.set_password(str(identifier))
The text was updated successfully, but these errors were encountered: