Front facing camera (#289)
* Front facing camera * Adding in configuration and update script
This commit is contained in:
parent
90de4fe24d
commit
00c4187081
10 changed files with 142 additions and 8 deletions
|
|
@ -38,6 +38,7 @@ const supportServer = require('./admin-support')
|
|||
const NEVER = new Date(Date.now() + 100 * T.years)
|
||||
const REAUTHENTICATE_INTERVAL = T.minute
|
||||
const idPhotoCardBasedir = _.get('idPhotoCardDir', options)
|
||||
const frontCameraBasedir = _.get('frontCameraDir', options)
|
||||
|
||||
const devMode = argv.dev
|
||||
|
||||
|
|
@ -255,7 +256,12 @@ if (!fs.existsSync(idPhotoCardBasedir)) {
|
|||
makeDir.sync(idPhotoCardBasedir)
|
||||
}
|
||||
|
||||
if (!fs.existsSync(frontCameraBasedir)) {
|
||||
makeDir.sync(frontCameraBasedir)
|
||||
}
|
||||
|
||||
app.use('/id-card-photo', serveStatic(idPhotoCardBasedir, {index: false}))
|
||||
app.use('/front-camera-photo', serveStatic(frontCameraBasedir, {index: false}))
|
||||
|
||||
function register (req, res, next) {
|
||||
const otp = req.query.otp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue