]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/initializers/installer.js
Server: forbid to make friends with a non https server
[github/Chocobozzz/PeerTube.git] / server / initializers / installer.js
index 8c3148e79fc9576f476f74fc6280ca2c13ecb4ee..1df300ba8d467fb76d3a7b5647fe1efc76559294 100644 (file)
@@ -18,7 +18,7 @@ const Client = mongoose.model('OAuthClient')
 const User = mongoose.model('User')
 
 const installer = {
-  installApplication: installApplication
+  installApplication
 }
 
 function installApplication (callback) {
@@ -107,9 +107,9 @@ function createOAuthAdminIfNotExist (callback) {
     }
 
     const user = new User({
-      username: username,
-      password: password,
-      role: role
+      username,
+      password,
+      role
     })
 
     user.save(function (err, createdUser) {