1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Add authentications for routes that need it and adapts the tests

This commit is contained in:
Chocobozzz 2016-04-14 22:06:11 +02:00
parent c9bf7d30bd
commit 0c1cbbfe29
15 changed files with 416 additions and 144 deletions

View file

@ -104,7 +104,7 @@ function saveToken (token, client, user) {
}
return OAuthTokensDB.create(token_to_create, function (err, token_created) {
if (err) throw err // node-oauth2-server library use Promise.try
if (err) throw err // node-oauth2-server library uses Promise.try
token_created.client = client
token_created.user = user