expephalon-kumisms/core/modules/otp.py
Klaus-Uwe Mitterer 7708128255 Finally got all the OTP stuff working
Finalized dbsettings views
Easter egg for missing backend pages
2020-04-15 22:19:03 +02:00

13 lines
No EOL
336 B
Python

import importlib
from django.conf import settings
providers = {}
for module in settings.EXPEPHALON_MODULES:
try:
moo = importlib.import_module(f"{module}.otp")
for name, provider in moo.OTPPROVIDERS.items():
providers[name] = provider
except (AttributeError, ModuleNotFoundError):
continue