diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/fixtures/peertube-plugin-test/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test/main.js b/server/tests/fixtures/peertube-plugin-test/main.js index 7715ab6e8..2f3809215 100644 --- a/server/tests/fixtures/peertube-plugin-test/main.js +++ b/server/tests/fixtures/peertube-plugin-test/main.js | |||
@@ -192,7 +192,7 @@ async function register ({ registerHook, registerSetting, settingsManager, stora | |||
192 | registerHook({ | 192 | registerHook({ |
193 | target: 'filter:api.user.signup.allowed.result', | 193 | target: 'filter:api.user.signup.allowed.result', |
194 | handler: (result, params) => { | 194 | handler: (result, params) => { |
195 | if (params && params.body.email.includes('jma')) { | 195 | if (params && params.body && params.body.email && params.body.email.includes('jma')) { |
196 | return { allowed: false, errorMessage: 'No jma' } | 196 | return { allowed: false, errorMessage: 'No jma' } |
197 | } | 197 | } |
198 | 198 | ||