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

Disable on Dev #4

Open
saschagysel opened this issue Jun 12, 2022 · 1 comment
Open

Disable on Dev #4

saschagysel opened this issue Jun 12, 2022 · 1 comment

Comments

@saschagysel
Copy link

What would be the best way to disable this on dev (or only use it on prod)? Would it make sense to add a config variable for this?

@dmandrade
Copy link
Member

The better approach would be to check allowed environments in:

public function hasTwoFactorEnabled($user)

That way we just skip the challenge step and everything else would continue working normally, I think a configuration property with allowed environments would be great.

would you like to do a PR?

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

No branches or pull requests

2 participants