diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-29 10:42:35 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-05-04 16:21:39 +0200 |
commit | ebefc902f59be6c5542c19ff706e310d9dddf75f (patch) | |
tree | 79eb831217a7938484e191070d6a465bc07a00fd /server/controllers/api/config.ts | |
parent | 9107d791e2eef9a1b24b0499dac8b9dbba8a792f (diff) | |
download | PeerTube-ebefc902f59be6c5542c19ff706e310d9dddf75f.tar.gz PeerTube-ebefc902f59be6c5542c19ff706e310d9dddf75f.tar.zst PeerTube-ebefc902f59be6c5542c19ff706e310d9dddf75f.zip |
Add external login buttons
Diffstat (limited to 'server/controllers/api/config.ts')
-rw-r--r-- | server/controllers/api/config.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index e8941bc73..85f3ad3d9 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -278,6 +278,8 @@ function getIdAndPassAuthPlugins () { | |||
278 | for (const auth of p.idAndPassAuths) { | 278 | for (const auth of p.idAndPassAuths) { |
279 | result.push({ | 279 | result.push({ |
280 | npmName: p.npmName, | 280 | npmName: p.npmName, |
281 | name: p.name, | ||
282 | version: p.version, | ||
281 | authName: auth.authName, | 283 | authName: auth.authName, |
282 | weight: auth.getWeight() | 284 | weight: auth.getWeight() |
283 | }) | 285 | }) |
@@ -294,6 +296,8 @@ function getExternalAuthsPlugins () { | |||
294 | for (const auth of p.externalAuths) { | 296 | for (const auth of p.externalAuths) { |
295 | result.push({ | 297 | result.push({ |
296 | npmName: p.npmName, | 298 | npmName: p.npmName, |
299 | name: p.name, | ||
300 | version: p.version, | ||
297 | authName: auth.authName, | 301 | authName: auth.authName, |
298 | authDisplayName: auth.authDisplayName | 302 | authDisplayName: auth.authDisplayName |
299 | }) | 303 | }) |