mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
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
This commit is contained in:
committed by
Chocobozzz
parent
98da1a7b4a
commit
70870adfac
@@ -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'
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user