Skip to content

Commit 5e4c255

Browse files
authored
fix(config): disable 2FA for non-production installs
Shouldn't be used, since it just causes failures for logins, as mail isn't a hard requirement for non-production installs
1 parent 6fa2a6e commit 5e4c255

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/tasks/configure/options.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,5 +182,16 @@ module.exports = {
182182
},
183183
type: 'string',
184184
group: 'Service Options:'
185+
},
186+
187+
// Security options
188+
staffDeviceVerification: {
189+
description: 'Enable/disable staff device verification (2FA)',
190+
configPath: 'security.staffDeviceVerification',
191+
defaultValue: (c, env) => {
192+
return env === 'production' ? true : false;
193+
},
194+
type: 'boolean',
195+
group: 'Security Options:'
185196
}
186197
};

0 commit comments

Comments
 (0)