aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/server.js b/server.js
index cf594453d..f9925eb24 100644
--- a/server.js
+++ b/server.js
@@ -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
123require('./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 -----------
123peertubeCrypto.createCertsIfNotExist(function (err) { 131peertubeCrypto.createCertsIfNotExist(function (err) {
124 if (err) throw err 132 if (err) throw err