mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
Update documentation and templates for new consent
This commit is contained in:
parent
7ede650956
commit
22a2004428
2 changed files with 18 additions and 10 deletions
|
@ -81,9 +81,9 @@ should be a matter of `pip install Jinja2`. On debian, try `apt-get install
|
||||||
python-jinja2`.
|
python-jinja2`.
|
||||||
|
|
||||||
Once this is complete, and the server has been restarted, try visiting
|
Once this is complete, and the server has been restarted, try visiting
|
||||||
`https://<server>/_matrix/consent`. If correctly configured, this should give
|
`https://<server>/_matrix/consent`. If correctly configured, you should see a
|
||||||
an error "Missing string query parameter 'u'". It is now possible to manually
|
default policy document. It is now possible to manually construct URIs where
|
||||||
construct URIs where users can give their consent.
|
users can give their consent.
|
||||||
|
|
||||||
### Constructing the consent URI
|
### Constructing the consent URI
|
||||||
|
|
||||||
|
@ -106,6 +106,11 @@ query parameters:
|
||||||
`https://<server>/_matrix/consent?u=<user>&h=68a152465a4d...`.
|
`https://<server>/_matrix/consent?u=<user>&h=68a152465a4d...`.
|
||||||
|
|
||||||
|
|
||||||
|
Note that not providing a `u` parameter will be interpreted as wanting to view
|
||||||
|
the document from an unauthenticated perspective, such as prior to registration.
|
||||||
|
Therefore, the `h` parameter is not required in this scenario.
|
||||||
|
|
||||||
|
|
||||||
Sending users a server notice asking them to agree to the policy
|
Sending users a server notice asking them to agree to the policy
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
<p>
|
<p>
|
||||||
All your base are belong to us.
|
All your base are belong to us.
|
||||||
</p>
|
</p>
|
||||||
|
{% if not public_version %}
|
||||||
|
<!-- The variables used here are only provided when the 'u' param is given to the homeserver -->
|
||||||
<form method="post" action="consent">
|
<form method="post" action="consent">
|
||||||
<input type="hidden" name="v" value="{{version}}"/>
|
<input type="hidden" name="v" value="{{version}}"/>
|
||||||
<input type="hidden" name="u" value="{{user}}"/>
|
<input type="hidden" name="u" value="{{user}}"/>
|
||||||
|
@ -19,5 +21,6 @@
|
||||||
<input type="submit" value="Sure thing!"/>
|
<input type="submit" value="Sure thing!"/>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue