Skip to content

CP requires 2fa setup with STATAMIC_TWO_FACTOR_ENABLED set to false #14306

@robdekort

Description

@robdekort

Bug description

In enforce 2fa on all roles but have it disabled on dev, however I can't use the CP that way as it still enforces me to setup a 2fa code.

Image

How to reproduce

  1. enforce 2fa on all roles
  2. set it to false in env
  3. browse the cp

Logs

Environment

Environment
Application Name: Studio 1902
Laravel Version: 12.55.1
PHP Version: 8.4.19
Composer Version: 2.9.5
Environment: local
Debug Mode: ENABLED
URL: 1902.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 3
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.7.1 PRO

Statamic Addons
studio1902/statamic-peak-commands: 10.5.0
studio1902/statamic-peak-seo: 11.0.2
studio1902/statamic-peak-tools: 9.0.2

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions