Signaux de création

This commit is contained in:
Robin Champenois 2021-01-17 22:20:13 +01:00
parent 4af5b9a90b
commit ce5fcb3d30
2 changed files with 4 additions and 0 deletions

View file

@ -107,6 +107,7 @@ class ENSCASBackend:
CASAccount.objects.create( CASAccount.objects.create(
user=user, entrance_year=entrance_year, cas_login=cas_login user=user, entrance_year=entrance_year, cas_login=cas_login
) )
post_cas_create.send(user, cas_login=cas_login, attributes=attributes)
return user return user
# Django boilerplate. # Django boilerplate.

3
authens/signals.py Normal file
View file

@ -0,0 +1,3 @@
import django.dispatch
post_cas_create = django.dispatch.Signal()