The environment constant 2FA currently defined in the .env file violates common naming conventions, as identifiers should not begin with a digit. This can cause compatibility issues and reduce code clarity. We need to rename this constant and refactor its usage throughout the codebase.
Acceptance Criteria
- Rename the
2FA key in the .env file to TWO_FA.
- Update any default values or usage references in config files.
- Refactor all usages in the codebase where
2FA is referenced (e.g., env('2FA'), config()->get('2FA'), etc.).
The environment constant
2FAcurrently defined in the.envfile violates common naming conventions, as identifiers should not begin with a digit. This can cause compatibility issues and reduce code clarity. We need to rename this constant and refactor its usage throughout the codebase.Acceptance Criteria
2FAkey in the.envfile toTWO_FA.2FAis referenced (e.g.,env('2FA'),config()->get('2FA'), etc.).