From a62fe8d4e24428e8ac44d69c8827c401b56f73b3 Mon Sep 17 00:00:00 2001 From: Aziz Khoury Date: Mon, 19 May 2014 14:00:29 -0400 Subject: [PATCH 1/2] Update hooks.rst --- docs/plugins/hooks.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/plugins/hooks.rst b/docs/plugins/hooks.rst index eb64dd8bca..fa54c345e8 100644 --- a/docs/plugins/hooks.rst +++ b/docs/plugins/hooks.rst @@ -35,6 +35,17 @@ Executed whenever a post is retrieved, but before being sent to the client. **Allows plugins to add new navigation links to NodeBB** +``filter:register.build`` +^^^^^^^^^^^^^^^^^^^^^ + +**Argument(s)**: + - `req` the express request object (javascript Object) + - `res` the express response object (javascript Object) + - `data` the data passed to the template (javascript Object) + +**Allows plugins to add new elements to the registration form. At the moment, the only one supported is `data.captcha`* + + ``filter:post.parse`` ^^^^^^^^^^^^^^^^^^^^^ @@ -51,6 +62,11 @@ Executed when a post or signature needs to be parsed from raw text to HTML (for ``filter:register.check`` ^^^^^^^^^^^^^^^^^^^^^ +**Argument(s)**: + - `req` the express request object (javascript Object) + - `res` the express response object (javascript Object) + - `userData` the user data parsed from the form + **Allows plugins to run checks on information and deny registration if necessary.** From 2a333fddeb72bf0211b3abd679476e1e49b9e605 Mon Sep 17 00:00:00 2001 From: Aziz Khoury Date: Mon, 19 May 2014 14:01:26 -0400 Subject: [PATCH 2/2] Update hooks.rst --- docs/plugins/hooks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plugins/hooks.rst b/docs/plugins/hooks.rst index fa54c345e8..4540cdc822 100644 --- a/docs/plugins/hooks.rst +++ b/docs/plugins/hooks.rst @@ -43,7 +43,7 @@ Executed whenever a post is retrieved, but before being sent to the client. - `res` the express response object (javascript Object) - `data` the data passed to the template (javascript Object) -**Allows plugins to add new elements to the registration form. At the moment, the only one supported is `data.captcha`* +**Allows plugins to add new elements to the registration form. At the moment, the only one supported is `data.captcha`** ``filter:post.parse``