Browse Source

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
John Livingston 4 years ago
parent
commit
70870adfac
1 changed files with 3 additions and 1 deletions
  1. 3 1
      server/controllers/api/config.ts

+ 3 - 1
server/controllers/api/config.ts

@@ -50,7 +50,9 @@ let serverCommit: string
 async function getConfig (req: express.Request, res: express.Response) {
   const { allowed } = await Hooks.wrapPromiseFun(
     isSignupAllowed,
-    {},
+    {
+      ip: req.ip
+    },
     'filter:api.user.signup.allowed.result'
   )