diff options
author | babolivier <babolivier@users.noreply.github.com> | 2021-10-18 16:27:18 +0000 |
---|---|---|
committer | babolivier <babolivier@users.noreply.github.com> | 2021-10-18 16:27:18 +0000 |
commit | 22e6e75a6ec31382d0d51221ce52502126872a00 (patch) | |
tree | 559c9aec38c7f5683706fc53eea1f542a49cbb49 /develop/modules/account_validity_callbacks.html | |
parent | deploy: 55731333488bfd53ece117938dde1cef710eef68 (diff) | |
download | synapse-22e6e75a6ec31382d0d51221ce52502126872a00.tar.xz |
deploy: 73743b8ad194c6e833432110b7d0cd1ba2ad1e6a
Diffstat (limited to 'develop/modules/account_validity_callbacks.html')
-rw-r--r-- | develop/modules/account_validity_callbacks.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/develop/modules/account_validity_callbacks.html b/develop/modules/account_validity_callbacks.html index e5065164c3..1d6d0a734d 100644 --- a/develop/modules/account_validity_callbacks.html +++ b/develop/modules/account_validity_callbacks.html @@ -198,12 +198,17 @@ represented by their Matrix user ID (e.g. <code>@alice:example.com</code>).</p> <p>If the module returns <code>True</code>, the current request will be denied with the error code <code>ORG_MATRIX_EXPIRED_ACCOUNT</code> and the HTTP status code 403. Note that this doesn't invalidate the user's access token.</p> +<p>If multiple modules implement this callback, they will be considered in order. If a +callback returns <code>None</code>, Synapse falls through to the next one. The value of the first +callback that does not return <code>None</code> will be used. If this happens, Synapse will not call +any of the subsequent implementations of this callback.</p> <h3 id="on_user_registration"><a class="header" href="#on_user_registration"><code>on_user_registration</code></a></h3> <pre><code class="language-python">async def on_user_registration(user: str) -> None </code></pre> <p>Called after successfully registering a user, in case the module needs to perform extra operations to keep track of them. (e.g. add them to a database table). The user is represented by their Matrix user ID.</p> +<p>If multiple modules implement this callback, Synapse runs them all in order.</p> </main> |