Merge pull request #2863 from overleaf/ta-2fa-env

Use ENV Vars for 2FA Settings

GitOrigin-RevId: 1b6f943ba5d9b58a2db2d082849a7f142d74a254
This commit is contained in:
Timothée Alby 2020-06-01 10:37:46 +02:00 committed by Copybot
parent c4ec032ffa
commit 460be2d99e

View file

@ -239,8 +239,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
# ----------------