mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
Merge pull request #3418 from gradido/fix_workerthread
fix(backend): toggle for using worker threads for password encryption
This commit is contained in:
commit
d14259c2ef
@ -46,7 +46,7 @@ export const SecretKeyCryptographyCreateKey = (
|
|||||||
return encryptionKeyHash.readBigUInt64LE()
|
return encryptionKeyHash.readBigUInt64LE()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CONFIG.USE_CRYPTO_WORKER) {
|
if (CONFIG.USE_CRYPTO_WORKER === true && typeof process.send === 'function') {
|
||||||
worker({
|
worker({
|
||||||
SecretKeyCryptographyCreateKey,
|
SecretKeyCryptographyCreateKey,
|
||||||
})
|
})
|
||||||
|
|||||||
@ -23,7 +23,7 @@ const configLoginServerKey = Buffer.from(CONFIG.LOGIN_SERVER_KEY, 'hex')
|
|||||||
|
|
||||||
let encryptionWorkerPool: Pool | undefined
|
let encryptionWorkerPool: Pool | undefined
|
||||||
|
|
||||||
if (CONFIG.USE_CRYPTO_WORKER) {
|
if (CONFIG.USE_CRYPTO_WORKER === true) {
|
||||||
encryptionWorkerPool = pool(
|
encryptionWorkerPool = pool(
|
||||||
path.join(__dirname, '..', '..', 'build', 'src', 'password', '/EncryptionWorker.js'),
|
path.join(__dirname, '..', '..', 'build', 'src', 'password', '/EncryptionWorker.js'),
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user