diff --git a/awx/api/serializers.py b/awx/api/serializers.py index f1e269a634..65a70e23c9 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -659,9 +659,6 @@ class UserSerializer(BaseSerializer): def validate_is_superuser(self, attrs, source): return self._validate_ldap_managed_field(attrs, source) - def validate_password(self, attrs, source): - return attrs - class OrganizationSerializer(BaseSerializer): diff --git a/awx/main/tests/users.py b/awx/main/tests/users.py index e2bfe4f308..3de0658beb 100644 --- a/awx/main/tests/users.py +++ b/awx/main/tests/users.py @@ -123,7 +123,7 @@ class UsersTest(BaseTest): def test_user_creation_fails_without_password(self): url = reverse('api:user_list') new_user = dict(username='blippy') - response = self.post(url, expect=400, data=new_user, auth=self.get_super_credentials()) + self.post(url, expect=400, data=new_user, auth=self.get_super_credentials()) def test_only_super_user_or_org_admin_can_add_users(self): url = reverse('api:user_list')