Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Providing 2FA code for the login as an option for the input #1438

@mastizada

Description

@mastizada

Is your feature request related to a problem? Please describe.

I'm using this plugin in a django web application and I need to add a login using web form. 2FA login currently only works with user's input, I would like to add a parameter support for it just like with username and password parameters. If the key will not be provided, it will use input to ask for the key.

Describe the solution you'd like

Add support for 2FA key in Bot's init function with default value None and use it in the 2FA challange.

Describe alternatives you've considered

Customization of the login process in the fork without a compatibility with this repository.

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions