mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-20 09:46:06 +02:00
checking transition domains on each login rather than on first login only
This commit is contained in:
parent
4311c9289c
commit
93370d45c2
7 changed files with 17 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue