diff options
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -119,6 +119,14 @@ app.use(function (err, req, res, next) { | |||
119 | res.sendStatus(err.status || 500) | 119 | res.sendStatus(err.status || 500) |
120 | }) | 120 | }) |
121 | 121 | ||
122 | // TODO: move into initializer | ||
123 | require('./server/models/users').createClient('coucou', [ 'password' ], function (err, id) { | ||
124 | if (err) throw err | ||
125 | logger.info('Client id: ' + id) | ||
126 | |||
127 | require('./server/models/users').createUser('floflo', 'coucou', function () {}) | ||
128 | }) | ||
129 | |||
122 | // ----------- Create the certificates if they don't already exist ----------- | 130 | // ----------- Create the certificates if they don't already exist ----------- |
123 | peertubeCrypto.createCertsIfNotExist(function (err) { | 131 | peertubeCrypto.createCertsIfNotExist(function (err) { |
124 | if (err) throw err | 132 | if (err) throw err |