feat: save T&C hash to the user_config

This commit is contained in:
André Sá 2022-04-14 12:01:20 +01:00
parent 6c43f7536d
commit 7b951f961f
2 changed files with 28 additions and 2 deletions

View file

@ -11,7 +11,6 @@ function sha256 (buf) {
}
const populateDeviceId = function (req, res, next) {
logger.info(`DEBUG LOG - Method: ${req.method} Path: ${req.path}`)
const deviceId = _.isFunction(req.connection.getPeerCertificate)
? sha256(req.connection.getPeerCertificate().raw)
: null