summary refs log tree commit diff
path: root/synapse/rest/consent (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use direct references for configuration variables (part 4). (#10893)Patrick Cloke2021-09-231-2/+2
|
* Use direct references for some configuration variables (part 3) (#10885)Patrick Cloke2021-09-231-4/+5
| | | | | | | | This avoids the overhead of searching through the various configuration classes by directly referencing the class that the attributes are in. It also improves type hints since mypy can now resolve the types of the configuration variables.
* Add missing type hints to non-client REST servlets. (#10817)Patrick Cloke2021-09-151-22/+17
| | | | Including admin, consent, key, synapse, and media. All REST servlets (the synapse.rest module) now require typed method definitions.
* Add a return type to parse_string. (#10438)Patrick Cloke2021-07-211-1/+1
| | | | And set the required attribute in a few places which will error if a parameter is not provided.
* Use inline type hints in `handlers/` and `rest/`. (#10382)Jonathan de Jong2021-07-161-2/+2
|
* Correct type hints for parse_string(s)_from_args. (#10137)Patrick Cloke2021-06-081-3/+6
|
* Remove various bits of compatibility code for Python <3.6 (#9879)Andrew Morgan2021-04-271-9/+1
| | | I went through and removed a bunch of cruft that was lying around for compatibility with old Python versions. This PR also will now prevent Synapse from starting unless you're running Python 3.6+.
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Replace username picker with a template (#9275)Richard van der Hoff2021-02-011-0/+1
| | | | | There's some prelimiary work here to pull out the construction of a jinja environment to a separate function. I wanted to load the template at display time rather than load time, so that it's easy to update on the fly. Honestly, I think we should do this with all our templates: the risk of ending up with malformed templates is far outweighed by the improved turnaround time for an admin trying to update them.
* Remove unnecessary maybeDeferred calls (#8044)Patrick Cloke2020-08-071-3/+1
|
* Merge different Resource implementation classes (#7732)Erik Johnston2020-07-031-8/+2
|
* Merge branch 'master' into developPatrick Cloke2020-07-021-7/+3
|\
| * Ensure that HTML pages served from Synapse include headers to avoid embedding.Patrick Cloke2020-07-021-7/+3
| |
* | Replace all remaining six usage with native Python 3 equivalents (#7704)Dagfinn Ilmari Mannsåker2020-06-161-3/+2
|/
* fix async/await consentresource (#5585)Amber Brown2019-07-011-1/+3
| | | Fixes #5582
* Make the http server handle coroutine-making REST servlets (#5475)Amber Brown2019-06-291-23/+12
|
* Run Black. (#5482)Amber Brown2019-06-201-12/+16
|
* Fix registration on workers (#4682)Erik Johnston2019-02-201-1/+1
| | | | | | | | | | * Move RegistrationHandler init to HomeServer * Move post registration actions to RegistrationHandler * Add post regisration replication endpoint * Newsfile
* Check consent dir path on startupAndrew Morgan2019-01-291-10/+1
|
* Neilj/fix autojoin (#4223)Neil Johnson2018-11-281-0/+2
| | | | | | * Fix auto join failures for servers that require user consent * Fix auto join failures for servers that require user consent
* Add a test for the public T&Cs formRichard van der Hoff2018-11-141-1/+1
|
* Fix an internal server error when viewing the public privacy policyRichard van der Hoff2018-11-141-4/+7
|
* Fix encoding error for consent form on python3hera2018-11-081-1/+3
| | | | | | The form was rendering this as "b'01234....'". -- richvdh
* Add config variables for enabling terms auth and the policy name (#4142)Travis Ralston2018-11-061-1/+1
| | | | So people can still collect consent the old way if they want to.
* Tests for user consent resource (#4140)Amber Brown2018-11-061-1/+1
|
* Fix logic error that prevented guests from seeing the privacy policyTravis Ralston2018-11-011-1/+1
|
* Rely on the lack of ?u to represent public accessTravis Ralston2018-10-121-8/+4
| | | also general cleanup
* Use a flag rather than a new route for the public policyTravis Ralston2018-10-031-14/+22
| | | This also means that the template now has optional parameters, which will need to be documented somehow.
* fix another consent encoding failRichard van der Hoff2018-08-211-1/+1
|
* Fix 500 error from /consent formRichard van der Hoff2018-08-211-2/+11
| | | | Fixes #3731
* run isortAmber Brown2018-07-091-7/+5
|
* Add a 'has_consented' template var to consent formsRichard van der Hoff2018-05-221-3/+14
| | | | fixes #3260
* Enable auto-escaping for the consent templatesRichard van der Hoff2018-05-221-1/+4
| | | | ... to reduce the risk of somebody introducing an html injection attack...
* Move consent config parsing into ConsentConfigRichard van der Hoff2018-05-221-5/+3
| | | | turns out we need to reuse this, so it's better in the config class.
* Rename 'version' param on user consent configRichard van der Hoff2018-05-221-1/+1
| | | | we're going to use it for the version we require too.
* ConsentResource to gather policy consent from usersRichard van der Hoff2018-05-152-0/+210
Hopefully there are enough comments and docs in this that it makes sense on its own.