Skip to content
This repository has been 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

Open
mastizada opened this issue Apr 17, 2020 · 6 comments
Open

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

mastizada opened this issue Apr 17, 2020 · 6 comments

Comments

@mastizada
Copy link
Contributor

mastizada commented Apr 17, 2020

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

@duplicate-issues
Copy link

Hey @mastizada,

We did a quick check and this issue looks very darn similar to

This could be a coincidence, but if any of these issues solves your problem then I did a good job 😄

If not, the maintainers will get to this issue shortly.

Cheers,
Your Friendly Neighborhood ProBot

@close-issue-app
Copy link

This issue has been automatically closed because the issue template is missing or incomplete. Filling the template is required so standard questions don't need to be asked again each time. Our ability to provide assistance is greatly hampered if few minutes are not taken to complete the issue template with the requested information. The details requested potentially affect which options to pursue. The small amount of time you will spend completing the template will also help the volunteers, providing assistance to you, to reduce the time required to help you.

@mastizada
Copy link
Contributor Author

mastizada commented Apr 17, 2020

@bruvv Hello, the bot closed my issue automatically, can you please check it? Thanks.

@bruvv bruvv reopened this Apr 17, 2020
@bruvv
Copy link
Collaborator

bruvv commented Apr 17, 2020

fixed the close issue bot, thanks for the Feature request

@mastizada
Copy link
Contributor Author

mastizada commented Apr 17, 2020

@bruvv what if I will also add a cli=True parameter and if it is set to False, all functions using input will instead return the text about the state?
It will be useful when this tool will be used as a library in non-cli program

@bruvv
Copy link
Collaborator

bruvv commented Apr 17, 2020

Sure go ahead

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants