mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Add ability to limit user registrations
This commit is contained in:
parent
3d09cdbf90
commit
291e8d3eed
15 changed files with 97 additions and 41 deletions
|
@ -513,7 +513,13 @@ describe('Test users API validators', function () {
|
|||
password: 'my super password 4'
|
||||
}
|
||||
|
||||
requestsUtils.makePostBodyRequest(serverWithRegistrationDisabled.url, registrationPath, serverWithRegistrationDisabled.accessToken, data, done, 400)
|
||||
requestsUtils.makePostBodyRequest(serverWithRegistrationDisabled.url, registrationPath, serverWithRegistrationDisabled.accessToken, data, done, 403)
|
||||
})
|
||||
})
|
||||
|
||||
describe('When registering multiple users on a server with users limit', function () {
|
||||
it('Should fail when after 3 registrations', function (done) {
|
||||
usersUtils.registerUser(server.url, 'user42', 'super password', 403, done)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue