Fix hello world filter error
This commit is contained in:
parent
d61ee5c504
commit
0faf0330a2
@ -27,7 +27,7 @@ async function register ({
|
|||||||
handler: (result, params) => {
|
handler: (result, params) => {
|
||||||
if (result.allowed === false) return result
|
if (result.allowed === false) return result
|
||||||
|
|
||||||
if (params && params.body.email.includes('laposte.net')) {
|
if (params && params.body && params.body.email.includes('laposte.net')) {
|
||||||
return { allowed: false, errorMessage: 'laposte.net emails are not allowed on this instance' }
|
return { allowed: false, errorMessage: 'laposte.net emails are not allowed on this instance' }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user