mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +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
|
@ -6,7 +6,7 @@ import { logger, getFormatedObjects } from '../../helpers'
|
|||
import {
|
||||
authenticate,
|
||||
ensureIsAdmin,
|
||||
ensureUserRegistrationEnabled,
|
||||
ensureUserRegistrationAllowed,
|
||||
usersAddValidator,
|
||||
usersUpdateValidator,
|
||||
usersRemoveValidator,
|
||||
|
@ -48,7 +48,7 @@ usersRouter.post('/',
|
|||
)
|
||||
|
||||
usersRouter.post('/register',
|
||||
ensureUserRegistrationEnabled,
|
||||
ensureUserRegistrationAllowed,
|
||||
usersAddValidator,
|
||||
createUser
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue