better config / install from cli / allow_registration

This commit is contained in:
lesion
2019-06-21 23:52:18 +02:00
parent 4c3c7ee324
commit cf81a73f2f
38 changed files with 530 additions and 272 deletions

View File

@@ -1,6 +1,5 @@
const { Op } = require('sequelize')
const { user: User } = require('./models')
const Settings = require('./controller/settings')
const Auth = {
async fillUser(req, res, next) {
@@ -26,7 +25,7 @@ const Auth = {
if (!req.user) {
return res
.status(403)
.send({ message: 'Failed to authenticate token ' + err })
.send({ message: 'Failed to authenticate token ' })
}
next()
},