# Bug OP-15529 - Internal error when trying to change 2FA settings that are enforced through ENV

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-15529

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.5.0 |
| Observed in versions |  |
| Sprint | 14.5.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | Yes |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Oliver Günther |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Before filing a report

_Before you file a report, please ensure you are running the latest version of OpenProject and_&nbsp;  
_have searched for similar bug reports._

### Steps to reproduce

_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_

1.  Run OpenProject with `OPENPROJECT_2FA_ENFORCED="false"`
    
2.  Go to `/two_factor_authentication/settings`
    
3.  Try to update settings
    

### What is the buggy behavior?

_Please describe the bug in as much detail as possible. Example:_

*   Internal error: https://appsignal.com/openproject-gmbh/sites/62d6c55083eb673480474bf9/exceptions/incidents/2158
    

### What is the expected behavior?

_Describe how the application should behave like. Example:_

1.  Updating the settings is prevented if provided through ENV (hide the settings)
    

###
