Skip to content

Commit

Permalink
Move account related settings into adapter
Browse files Browse the repository at this point in the history
This was a change in ACM v0.26.
  • Loading branch information
amstilp committed Nov 12, 2024
1 parent 3d16ae3 commit 5fcdcf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,6 @@
ANVIL_ACCOUNT_ADAPTER = "gregor_django.gregor_anvil.adapters.AccountAdapter"
ANVIL_MANAGED_GROUP_ADAPTER = "gregor_django.gregor_anvil.adapters.ManagedGroupAdapter"

# Specify the URL name that AccountLink and AccountLinkVerify redirect to.
ANVIL_ACCOUNT_LINK_REDIRECT = "users:redirect"
# Specify the subject for AnVIL account verification emails.
ANVIL_ACCOUNT_LINK_EMAIL_SUBJECT = "Verify your AnVIL account email"
ANVIL_ACCOUNT_VERIFY_NOTIFICATION_EMAIL = "[email protected]"

DRUPAL_API_CLIENT_ID = env("DRUPAL_API_CLIENT_ID", default="")
DRUPAL_API_CLIENT_SECRET = env("DRUPAL_API_CLIENT_SECRET", default="")
DRUPAL_API_REL_PATH = env("DRUPAL_API_REL_PATH", default="mockapi")
Expand Down
3 changes: 3 additions & 0 deletions gregor_django/gregor_anvil/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ class AccountAdapter(BaseAccountAdapter):

list_table_class = tables.AccountTable
list_filterset_class = filters.AccountListFilter
# account_link_verify_redirect = "users:redirect"
# account_link_email_subject = "Verify your AnVIL account email"
# account_verify_notification_email = "[email protected]"

def get_autocomplete_queryset(self, queryset, q):
"""Filter to Accounts where the email or the associated user name matches the query `q`."""
Expand Down

0 comments on commit 5fcdcf8

Please sign in to comment.