Skip to content

Conversation

@wmaciejewskimer
Copy link
Collaborator

No description provided.

raise MFAMethodDoesNotExistError()
return method_name

def fetch_primary_active_name(self, user_id: Any) -> Optional[str]:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def fetch_primary_active_name(self, user_id: Any) -> Optional[str]:
def fetch_primary_active_name(self, user_id: int) -> Optional[str]:

@staticmethod
def post(request: Request, method: str) -> Response:
mfa_model = get_mfa_model()
primary_method = mfa_model.objects.fetch_primary_active_name(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like any active method should be allowed here not just the primary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants