Skip to content

Commit

Permalink
feat(config): allow set users
Browse files Browse the repository at this point in the history
  • Loading branch information
@jotadeveloper authored and sergiohgz committed Jul 31, 2019
1 parent 3c04e51 commit e5326fd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/auth-memory/index.js
Original file line number Diff line number Diff line change
@@ -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
}
Expand Down

0 comments on commit e5326fd

Please sign in to comment.