From 6868411aa7588e47b7d02e1f19c4374861df8ea5 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sat, 25 Apr 2020 18:26:46 +0200 Subject: [PATCH] Add configurable redis pass --- package.json | 2 +- src/components/RedisComponent.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8f48c52..7da43e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wms-core", - "version": "0.4.17", + "version": "0.4.18", "description": "Node web framework", "repository": "git@gitlab.com:ArisuOngaku/wms-core.git", "author": "Alice Gaudon ", diff --git a/src/components/RedisComponent.ts b/src/components/RedisComponent.ts index ca2b698..06e7030 100644 --- a/src/components/RedisComponent.ts +++ b/src/components/RedisComponent.ts @@ -20,6 +20,7 @@ export default class RedisComponent extends ApplicationComponent { this.store = new RedisStore({ client: this.redisClient, prefix: config.get('redis.prefix') + '-session:', + pass: config.has('redis.password') ? config.get('redis.password') : undefined, }); }