mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-20 15:05:43 +00:00
use ENv vars for 2FA settings
GitOrigin-RevId: b32b2d62d0f9145e5c59b8984b44940c855a1d91
This commit is contained in:
parent
345adb8ad2
commit
9279e97cdc
1 changed files with 2 additions and 2 deletions
|
@ -225,8 +225,8 @@ module.exports = settings =
|
|||
httpAuthUsers: httpAuthUsers
|
||||
|
||||
twoFactorAuthentication:
|
||||
enabled: false
|
||||
requiredForStaff: false
|
||||
enabled: process.env['TWO_FACTOR_AUTHENTICATION_ENABLED'] == 'true'
|
||||
requiredForStaff: process.env['TWO_FACTOR_AUTHENTICATION_REQUIRED_FOR_STAFF'] == 'true'
|
||||
|
||||
# Default features
|
||||
# ----------------
|
||||
|
|
Loading…
Add table
Reference in a new issue