aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorJohn Livingston <38844060+JohnXLivingston@users.noreply.github.com>2020-01-20 14:58:44 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-01-20 14:58:44 +0100
commit70870adfacbbcfbe223651b0c74811d21805ab0f (patch)
tree8e9ea6cadc832c352c00cd4d778315277d4b0278 /server
parent98da1a7b4a1fd4dde33dddaeb6adf79b2248e244 (diff)
downloadPeerTube-70870adfacbbcfbe223651b0c74811d21805ab0f.tar.gz
PeerTube-70870adfacbbcfbe223651b0c74811d21805ab0f.tar.zst
PeerTube-70870adfacbbcfbe223651b0c74811d21805ab0f.zip
Adding the request ip for hook filter:api.user.signup.allowed.result (#2416)
* Adding the request ip for hook filter:api.user.signup.allowed.result * Fix typo
Diffstat (limited to 'server')
-rw-r--r--server/controllers/api/config.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts
index 06ee1ee85..ae4e00248 100644
--- a/server/controllers/api/config.ts
+++ b/server/controllers/api/config.ts
@@ -50,7 +50,9 @@ let serverCommit: string
50async function getConfig (req: express.Request, res: express.Response) { 50async function getConfig (req: express.Request, res: express.Response) {
51 const { allowed } = await Hooks.wrapPromiseFun( 51 const { allowed } = await Hooks.wrapPromiseFun(
52 isSignupAllowed, 52 isSignupAllowed,
53 {}, 53 {
54 ip: req.ip
55 },
54 'filter:api.user.signup.allowed.result' 56 'filter:api.user.signup.allowed.result'
55 ) 57 )
56 58