diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-04-14 22:06:11 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-04-14 22:06:11 +0200 |
commit | 0c1cbbfe29d91c95f9c574b57adf067654b8b5b4 (patch) | |
tree | b61e48caedea8881cbfd1159295f6c311b35be90 /server/initializers/installer.js | |
parent | c9bf7d30bd688e84b12dca03029dde6e9645a997 (diff) | |
download | PeerTube-0c1cbbfe29d91c95f9c574b57adf067654b8b5b4.tar.gz PeerTube-0c1cbbfe29d91c95f9c574b57adf067654b8b5b4.tar.zst PeerTube-0c1cbbfe29d91c95f9c574b57adf067654b8b5b4.zip |
Add authentications for routes that need it and adapts the tests
Diffstat (limited to 'server/initializers/installer.js')
-rw-r--r-- | server/initializers/installer.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/initializers/installer.js b/server/initializers/installer.js index 750eb2c59..ec9175f34 100644 --- a/server/initializers/installer.js +++ b/server/initializers/installer.js | |||
@@ -57,12 +57,12 @@ function createOAuthClientIfNotExist (callback) { | |||
57 | logger.info('Creating a default OAuth Client.') | 57 | logger.info('Creating a default OAuth Client.') |
58 | 58 | ||
59 | // TODO: generate password | 59 | // TODO: generate password |
60 | const password = 'megustalabanana' | 60 | const secret = 'megustalabanana' |
61 | Users.createClient(password, [ 'password' ], function (err, id) { | 61 | Users.createClient(secret, [ 'password' ], function (err, id) { |
62 | if (err) return callback(err) | 62 | if (err) return callback(err) |
63 | 63 | ||
64 | logger.info('Client id: ' + id) | 64 | logger.info('Client id: ' + id) |
65 | logger.info('Client password: ' + password) | 65 | logger.info('Client secret: ' + secret) |
66 | 66 | ||
67 | return callback(null) | 67 | return callback(null) |
68 | }) | 68 | }) |