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:
parent
51539e95d9
commit
9a7fd9600b
8 changed files with 32 additions and 8 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue