checking transition domains on each login rather than on first login only

This commit is contained in:
David Kennedy 2023-11-07 15:01:02 -05:00
parent 4311c9289c
commit 93370d45c2
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
7 changed files with 17 additions and 17 deletions

View file

@ -154,10 +154,10 @@ class User(AbstractUser):
new_domain_info = DomainInformation(creator=self, domain=domain)
new_domain_info.save()
def first_login(self):
"""Callback when the user is authenticated for the very first time.
def on_each_login(self):
"""Callback each time the user is authenticated.
When a user first arrives on the site, we need to retrieve any domain
When a user arrives on the site each time, we need to retrieve any domain
invitations that match their email address.
We also need to check if they are logging in with the same e-mail