mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-21 20:38:22 +02:00
Create Matrix room when a Team got created
This commit is contained in:
@ -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
|
||||
|
@ -1,17 +1,17 @@
|
||||
[
|
||||
{
|
||||
"model": "cas_server.servicepattern",
|
||||
"pk": 1,
|
||||
"fields": {
|
||||
"pos": 100,
|
||||
"name": "Plateforme des Correspondances",
|
||||
"pattern": "^https://correspondances-maths.fr:8448/.*$",
|
||||
"user_field": "matrix_username",
|
||||
"restrict_users": false,
|
||||
"proxy": true,
|
||||
"proxy_callback": true,
|
||||
"single_log_out": true,
|
||||
"single_log_out_callback": ""
|
||||
{
|
||||
"model": "cas_server.servicepattern",
|
||||
"pk": 1,
|
||||
"fields": {
|
||||
"pos": 100,
|
||||
"name": "Plateforme des Correspondances",
|
||||
"pattern": "^https://correspondances-maths.fr:8448/.*$",
|
||||
"user_field": "matrix_username",
|
||||
"restrict_users": false,
|
||||
"proxy": true,
|
||||
"proxy_callback": true,
|
||||
"single_log_out": true,
|
||||
"single_log_out_callback": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user