diff options
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test-external-auth-one/main.js')
-rw-r--r-- | server/tests/fixtures/peertube-plugin-test-external-auth-one/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test-external-auth-one/main.js b/server/tests/fixtures/peertube-plugin-test-external-auth-one/main.js index f29fd1f30..91c67e550 100644 --- a/server/tests/fixtures/peertube-plugin-test-external-auth-one/main.js +++ b/server/tests/fixtures/peertube-plugin-test-external-auth-one/main.js | |||
@@ -5,7 +5,7 @@ async function register ({ | |||
5 | { | 5 | { |
6 | const result = registerExternalAuth({ | 6 | const result = registerExternalAuth({ |
7 | authName: 'external-auth-1', | 7 | authName: 'external-auth-1', |
8 | authDisplayName: 'External Auth 1', | 8 | authDisplayName: () => 'External Auth 1', |
9 | onLogout: user => peertubeHelpers.logger.info('On logout %s', user.username), | 9 | onLogout: user => peertubeHelpers.logger.info('On logout %s', user.username), |
10 | onAuthRequest: (req, res) => { | 10 | onAuthRequest: (req, res) => { |
11 | const username = req.query.username | 11 | const username = req.query.username |
@@ -23,7 +23,7 @@ async function register ({ | |||
23 | { | 23 | { |
24 | const result = registerExternalAuth({ | 24 | const result = registerExternalAuth({ |
25 | authName: 'external-auth-2', | 25 | authName: 'external-auth-2', |
26 | authDisplayName: 'External Auth 2', | 26 | authDisplayName: () => 'External Auth 2', |
27 | onAuthRequest: (req, res) => { | 27 | onAuthRequest: (req, res) => { |
28 | result.userAuthenticated({ | 28 | result.userAuthenticated({ |
29 | req, | 29 | req, |