From 4f63a0e1ab8be008062fac733448b8afdee53815 Mon Sep 17 00:00:00 2001 From: Serhii Tereshchenko Date: Wed, 9 Aug 2023 13:03:49 +0300 Subject: [PATCH] Revert "refactor: Move registry.get_methods() call to separate method, to allow customization" This reverts commit 8d1ecfe64fdfcc2e304dbd5134db7b88456025f7. --- two_factor/views/core.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/two_factor/views/core.py b/two_factor/views/core.py index d37ea19f4..1a6090461 100644 --- a/two_factor/views/core.py +++ b/two_factor/views/core.py @@ -496,7 +496,7 @@ def get_form_list(self): """ form_list = super().get_form_list() - available_methods = self.get_available_methods() + available_methods = registry.get_methods() if len(available_methods) == 1: form_list.pop('method', None) method_key = available_methods[0].code @@ -511,9 +511,6 @@ def get_form_list(self): form_list['validation'] = DeviceValidationForm return form_list - def get_available_methods(self): - return registry.get_methods() - def render_next_step(self, form, **kwargs): """ In the validation step, ask the device to generate a challenge.