2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

remove unsupported option

This commit is contained in:
Matthias Mair
2025-01-26 15:39:19 +01:00
parent d91363e413
commit 4fb010864b
2 changed files with 0 additions and 10 deletions

View File

@ -13,7 +13,6 @@ from allauth.account.adapter import DefaultAccountAdapter
from allauth.account.forms import LoginForm, SignupForm, set_form_field_order
from allauth.headless.adapter import DefaultHeadlessAdapter
from allauth.headless.tokens.sessions import SessionTokenStrategy
from allauth.mfa.adapter import DefaultMFAAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
import InvenTree.helpers_model
@ -223,14 +222,6 @@ class CustomSocialAccountAdapter(RegistrationMixin, DefaultSocialAccountAdapter)
return request.build_absolute_uri(f'/{settings.FRONTEND_URL_BASE}/')
class CustomMFAAdapter(DefaultMFAAdapter):
"""Override of adapter to use dynamic settings."""
def block_email_registering(self, user) -> bool:
"""Statically disable email registration blocking."""
return False
class CustomHeadlessAdapter(DefaultHeadlessAdapter):
"""Override of adapter to use dynamic settings."""

View File

@ -1299,7 +1299,6 @@ ACCOUNT_FORMS = {
SOCIALACCOUNT_ADAPTER = 'InvenTree.auth_overrides.CustomSocialAccountAdapter'
ACCOUNT_ADAPTER = 'InvenTree.auth_overrides.CustomAccountAdapter'
MFA_ADAPTER = 'InvenTree.auth_overrides.CustomMFAAdapter'
HEADLESS_ADAPTER = 'InvenTree.auth_overrides.CustomHeadlessAdapter'
ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE = True