aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/users.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-04-14 22:06:11 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-04-14 22:06:11 +0200
commit0c1cbbfe29d91c95f9c574b57adf067654b8b5b4 (patch)
treeb61e48caedea8881cbfd1159295f6c311b35be90 /server/models/users.js
parentc9bf7d30bd688e84b12dca03029dde6e9645a997 (diff)
downloadPeerTube-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/models/users.js')
-rw-r--r--server/models/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/users.js b/server/models/users.js
index 367c206ab..046fe462d 100644
--- a/server/models/users.js
+++ b/server/models/users.js
@@ -104,7 +104,7 @@ function saveToken (token, client, user) {
104 } 104 }
105 105
106 return OAuthTokensDB.create(token_to_create, function (err, token_created) { 106 return OAuthTokensDB.create(token_to_create, function (err, token_created) {
107 if (err) throw err // node-oauth2-server library use Promise.try 107 if (err) throw err // node-oauth2-server library uses Promise.try
108 108
109 token_created.client = client 109 token_created.client = client
110 token_created.user = user 110 token_created.user = user