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

Create a Matrix channel when a team got created

This commit is contained in:
Yohann D'ANELLO
2020-10-29 15:07:03 +01:00
parent b33723efb3
commit 6647a284f4
5 changed files with 41 additions and 18 deletions

View File

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