Skip to content

[6.x] Ability to disable two-factor authentication#14263

Open
duncanmcclean wants to merge 1 commit into6.xfrom
disable-two-factor
Open

[6.x] Ability to disable two-factor authentication#14263
duncanmcclean wants to merge 1 commit into6.xfrom
disable-two-factor

Conversation

@duncanmcclean
Copy link
Member

This pull request adds the ability to disable Two-Factor authentication via an environment variable. Useful for local/staging environments or projects using OAuth where login/2fa is handled by a third party.

When disabled:

  • Users can login without a 2FA challenge
  • The 2FA section is hidden on user profiles

To disable, add this to your .env:

STATAMIC_TWO_FACTOR_ENABLED=false

Closes #14252

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.

2FA doesn't work on different servers w/ different APP_KEY

2 participants