feat: authentication improvements

This commit is contained in:
NGPixel authored and Nicolas Giard committed 2018-08-04 17:28:39 -04:00
1 parent 2817c72ec3
commit bcd6ceb271
39 files changed
+393 -169

No files matched your search

+1 -1
View File
@@ -15,8 +15,8 @@ module.exports = {
let targets = await WIKI.models.storage.getTargets()
targets = targets.map(tgt => {
const targetInfo = _.find(WIKI.data.storage, ['key', tgt.key]) || {}
console.info(targetInfo)
return {
...targetInfo,
...tgt,
config: _.sortBy(_.transform(tgt.config, (res, value, key) => {
const configData = _.get(targetInfo.props, key, {})