feat: skip2fa option on .env

This commit is contained in:
Rafael Taranto 2025-05-13 14:46:36 +01:00
parent ed6833182b
commit 1036771951
4 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,5 @@
const { skip2fa } = require('../environment-helper')
const _ = require('lodash/fp')
const nmd = require('nano-markdown')
@ -291,6 +293,7 @@ const dynamicConfig = ({ deviceId, operatorId, pid, pq, settings }) => {
}),
_.update('coins', _.map(setZeroConfLimit(settings.config))),
_.set('skip2fa', skip2fa),
_.set('reboot', !!pid && state.reboots?.[operatorId]?.[deviceId] === pid),
_.set(
'shutdown',

View file

@ -220,6 +220,7 @@ module.exports = gql`
emptyUnit: Boolean!
refillUnit: Boolean!
diagnostics: Boolean!
skip2fa: Boolean!
}
type Configs {