Skip to content
Snippets Groups Projects
Verified Commit 6e7e7d34 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Remove conditional block in setup_data as otp_yubikey is now mandatory.

parent 30c91102
No related branches found
No related tags found
No related merge requests found
Pipeline #232 failed
......@@ -20,13 +20,12 @@ class CoreConfig(AppConfig):
pass # noqa
def setup_data(self) -> None:
if 'otp_yubikey' in settings.INSTALLED_APPS:
try:
apps.get_model('otp_yubikey', 'ValidationService').objects.update_or_create(
name='default', defaults={'use_ssl': True, 'param_sl': '', 'param_timeout': ''}
)
except ProgrammingError:
warn('Yubikey validation service could not be created yet. If you are currently in a migration, this is expected.')
try:
apps.get_model('otp_yubikey', 'ValidationService').objects.update_or_create(
name='default', defaults={'use_ssl': True, 'param_sl': '', 'param_timeout': ''}
)
except ProgrammingError:
warn('Yubikey validation service could not be created yet. If you are currently in a migration, this is expected.')
def ready(self) -> None:
self.clean_scss()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment