mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-01 12:59:15 -06:00
Fix plugin filter test
This commit is contained in:
parent
f7ce623db1
commit
da5f46487f
@ -192,7 +192,7 @@ async function register ({ registerHook, registerSetting, settingsManager, stora
|
||||
registerHook({
|
||||
target: 'filter:api.user.signup.allowed.result',
|
||||
handler: (result, params) => {
|
||||
if (params && params.body.email.includes('jma')) {
|
||||
if (params && params.body && params.body.email && params.body.email.includes('jma')) {
|
||||
return { allowed: false, errorMessage: 'No jma' }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user