Allow signups with last name tester on prod for now

This commit is contained in:
Tanner Collin 2020-02-06 09:15:26 +00:00
parent 9e40c5d807
commit b927491084

View File

@ -354,7 +354,7 @@ class RegistrationSerializer(RegisterSerializer):
def custom_signup(self, request, user):
data = request.data
is_test_signup = bool(settings.DEBUG and data['last_name'] == 'tester')
is_test_signup = bool(data['last_name'] == 'tester')
if not utils.is_request_from_protospace(request) and not is_test_signup:
user.delete()