Skip to content

Commit e5326fd

Browse files
@jotadevelopersergiohgz
authored andcommitted
feat(config): allow set users
1 parent 3c04e51 commit e5326fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plugins/auth-memory/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
'use strict';
22

33
function Memory(config, stuff) {
4-
var self = Object.create(Memory.prototype);
5-
self._users = {};
4+
const self = Object.create(Memory.prototype);
5+
6+
self._users = config.users || {};
67
self._config = config;
78
self._logger = stuff.logger;
8-
self._sinopia_config = stuff.config;
9+
self._app_config = stuff.config;
910

1011
return self
1112
}

0 commit comments

Comments
 (0)