1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Fix external auth email/password update

Also check if an actor does not already exist when creating the user
This commit is contained in:
Chocobozzz 2020-05-20 10:04:44 +02:00
parent 51539e95d9
commit 9a7fd9600b
No known key found for this signature in database
GPG key ID: 583A612D890159BE
8 changed files with 32 additions and 8 deletions

View file

@ -255,6 +255,16 @@ describe('Test external auth plugins', function () {
expect(body.role).to.equal(UserRole.USER)
})
it('Should not update an external auth email', async function () {
await updateMyUser({
url: server.url,
accessToken: cyanAccessToken,
email: 'toto@example.com',
currentPassword: 'toto',
statusCodeExpected: 400
})
})
it('Should reject token of Kefka by the plugin hook', async function () {
this.timeout(10000)