]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/tests/fixtures/peertube-plugin-test-id-pass-auth-three/main.js
1 async
function register ({
5 registerIdAndPassAuth({
6 authName: 'laguna-bad-auth',
9 peertubeHelpers
.logger
.info('On logout for auth 3 - 1')
15 if (body
.id
=== 'laguna' && body
.password
=== 'laguna password') {
16 return Promise
.resolve({
18 email: 'laguna@example.com',
19 displayName: 'Laguna Loire'
27 registerIdAndPassAuth({
28 authName: 'ward-auth',
33 if (body
.id
=== 'ward') {
34 return Promise
.resolve({
36 email: 'ward@example.com'
44 registerIdAndPassAuth({
45 authName: 'kiros-auth',
50 if (body
.id
=== 'kiros') {
51 return Promise
.resolve({
53 email: 'kiros@example.com',
54 displayName: 'a'.repeat(5000)
62 registerIdAndPassAuth({
63 authName: 'raine-auth',
68 if (body
.id
=== 'raine') {
69 return Promise
.resolve({
71 email: 'raine@example.com',
80 registerIdAndPassAuth({
81 authName: 'ellone-auth',
86 if (body
.id
=== 'ellone') {
87 return Promise
.resolve({
97 async
function unregister () {
106 // ###########################################################################