♻️(backend) force saving invitation email in lowercase

We want to enforce that invitation email are saved in lower case.
This commit is contained in:
Manuel Raynaud
2025-10-07 14:51:46 +02:00
parent 590b67fd71
commit 3b08ba4de1
2 changed files with 28 additions and 0 deletions
+2
View File
@@ -740,6 +740,8 @@ class InvitationSerializer(serializers.ModelSerializer):
if self.instance is None:
attrs["issuer"] = user
attrs["email"] = attrs["email"].lower()
return attrs
def validate_role(self, role):