]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/tests/fixtures/peertube-plugin-test-id-pass-auth-one/main.js
9fc12a3e33c59bc7305ee7d720378738cf1a598f
1 async
function register ({
5 registerIdAndPassAuth({
6 authName: 'spyro-auth',
9 peertubeHelpers
.logger
.info('On logout for auth 1 - 1')
15 if (body
.id
=== 'spyro' && body
.password
=== 'spyro password') {
16 return Promise
.resolve({
18 email: 'spyro@example.com',
20 displayName: 'Spyro the Dragon'
28 registerIdAndPassAuth({
29 authName: 'crash-auth',
32 peertubeHelpers
.logger
.info('On logout for auth 1 - 2')
38 if (body
.id
=== 'crash' && body
.password
=== 'crash password') {
39 return Promise
.resolve({
41 email: 'crash@example.com',
43 displayName: 'Crash Bandicoot'
52 async
function unregister () {
61 // ###########################################################################