From 37c2aeb5b39fcdc6b2f11d7730ada6f643f61158 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 25 Feb 2020 23:33:26 +0000 Subject: [PATCH] Remove last name Tester work around --- apiserver/apiserver/api/serializers.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apiserver/apiserver/api/serializers.py b/apiserver/apiserver/api/serializers.py index ba08126..ce44c01 100644 --- a/apiserver/apiserver/api/serializers.py +++ b/apiserver/apiserver/api/serializers.py @@ -376,9 +376,7 @@ class MyRegisterSerializer(RegisterSerializer): def custom_signup(self, request, user): data = request.data - is_test_signup = bool(data['last_name'] == 'tester') - - if not utils.is_request_from_protospace(request) and not is_test_signup: + if not utils.is_request_from_protospace(request): user.delete() raise ValidationError(dict(non_field_errors='Can only register from Protospace.'))