1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-07-04 12:12:14 +02:00

Create Matrix room when a Team got created

This commit is contained in:
Yohann D'ANELLO
2020-10-28 19:03:25 +01:00
parent c9be07e45a
commit b33723efb3
5 changed files with 73 additions and 18 deletions

View File

@ -10,4 +10,5 @@ class CustomAuthUser(DjangoAuthUser):
d = super().attributs()
if self.user:
d["matrix_username"] = f"corres2math_{self.user.pk}"
d["display_name"] = str(self.user.registration)
return d