diff options
author | John Livingston <38844060+JohnXLivingston@users.noreply.github.com> | 2020-01-20 14:58:44 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-01-20 14:58:44 +0100 |
commit | 70870adfacbbcfbe223651b0c74811d21805ab0f (patch) | |
tree | 8e9ea6cadc832c352c00cd4d778315277d4b0278 /server/controllers/api/config.ts | |
parent | 98da1a7b4a1fd4dde33dddaeb6adf79b2248e244 (diff) | |
download | PeerTube-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/controllers/api/config.ts')
-rw-r--r-- | server/controllers/api/config.ts | 4 |
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 | |||
50 | async function getConfig (req: express.Request, res: express.Response) { | 50 | async 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 | ||