Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "refactor: Move registry.get_methods() call to separate method, to all…" #643

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions two_factor/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
Loading