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

(plugins) adding signup scope and init hook, modifying ensureUserRegistrationAllowed allowedParams

This commit is contained in:
Rigel Kent 2019-11-25 11:16:12 +01:00 committed by Chocobozzz
parent efcd6f2e62
commit ba7b7e572f
6 changed files with 24 additions and 8 deletions

View file

@ -38,7 +38,10 @@ export const clientFilterHookObject = {
'filter:api.search.videos.list.result': true,
// Filter params/result of the function that fetch video-channels according to the user search
'filter:api.search.video-channels.list.params': true,
'filter:api.search.video-channels.list.result': true
'filter:api.search.video-channels.list.result': true,
// Filter form
'filter:api.signup.registration.create.params': true
}
export type ClientFilterHookName = keyof typeof clientFilterHookObject
@ -58,7 +61,10 @@ export const clientActionHookObject = {
'action:search.init': true,
// Fired every time Angular URL changes
'action:router.navigation-end': true
'action:router.navigation-end': true,
// Fired when the registration page is being initialized
'action:signup.register.init': true
}
export type ClientActionHookName = keyof typeof clientActionHookObject