From e5326fdb78b5234e6a5c41526fa3d159606da2c4 Mon Sep 17 00:00:00 2001 From: "@jotadeveloper" <@jotadeveloper> Date: Fri, 26 Jan 2018 22:25:40 +0100 Subject: [PATCH] feat(config): allow set users --- plugins/auth-memory/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/auth-memory/index.js b/plugins/auth-memory/index.js index d590f46b..22f7193d 100644 --- a/plugins/auth-memory/index.js +++ b/plugins/auth-memory/index.js @@ -1,11 +1,12 @@ 'use strict'; function Memory(config, stuff) { - var self = Object.create(Memory.prototype); - self._users = {}; + const self = Object.create(Memory.prototype); + + self._users = config.users || {}; self._config = config; self._logger = stuff.logger; - self._sinopia_config = stuff.config; + self._app_config = stuff.config; return self }