Skip to content

Commit

Permalink
fixup! feat(api): disable registration under LPS on signup
Browse files Browse the repository at this point in the history
  • Loading branch information
peterthomassen committed Jan 12, 2024
1 parent ebe2428 commit 139b663
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/desecapi/serializers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def validate(self, attrs):
if (
not settings.REGISTER_LPS
and attrs.get("captcha") is not None
and attrs.get("domain") is not None
and DomainSerializer.Meta.model(name=attrs["domain"]).is_locally_registrable
):
raise serializers.ValidationError(
Expand Down

0 comments on commit 139b663

Please sign in to comment.