summary refs log tree commit diff
path: root/synapse/config/emailconfig.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Port "Allow users to click account renewal links multiple times without ↵Andrew Morgan2021-04-191-1/+1
| | | | | hitting an 'Invalid Token' page #74" from synapse-dinsic (#9832) This attempts to be a direct port of https://github.com/matrix-org/synapse-dinsic/pull/74 to mainline. There was some fiddling required to deal with the changes that have been made to mainline since (mainly dealing with the split of `RegistrationWorkerStore` from `RegistrationStore`, and the changes made to `self.make_request` in test code).
* 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>`
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-2/+4
| | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version
* Backout changes for automatically calculating the public baseurl. (#9313)Patrick Cloke2021-02-111-0/+8
| | | | This breaks some people's configurations (if their Client-Server API is not accessed via port 443).
* Give `public_baseurl` a default value (#9159)Richard van der Hoff2021-01-201-8/+0
|
* Send the location of the web client to the IS when inviting via 3PIDs. (#8930)Patrick Cloke2020-12-181-0/+22
| | | | Adds a new setting `email.invite_client_location` which, if defined, is passed to the identity server during invites.
* Clarify config template comments (#8891)Richard van der Hoff2020-12-081-3/+2
|
* Remove obsolete __future__ imports (#8337)Jonathan de Jong2020-09-171-1/+0
|
* Show a confirmation page during user password reset (#8004)Andrew Morgan2020-09-101-3/+9
| | | | | This PR adds a confirmation step to resetting your user password between clicking the link in your email and your password actually being reset. This is to better align our password reset flow with the industry standard of requiring a confirmation from the user after email validation.
* Use the default templates when a custom template file cannot be found (#8037)Andrew Morgan2020-08-171-78/+67
| | | Fixes https://github.com/matrix-org/synapse/issues/6583
* Allow email subjects to be customised through Synapse's configuration (#7846)Brendan Abolivier2020-07-141-6/+112
|
* Fix some spelling mistakes / typos. (#7811)Patrick Cloke2020-07-091-1/+1
|
* isort 5 compatibility (#7786)Will Hunt2020-07-051-2/+1
| | | The CI appears to use the latest version of isort, which is a problem when isort gets a major version bump. Rather than try to pin the version, I've done the necessary to make isort5 happy with synapse.
* Fix some DETECTED VIOLATIONS in the config file (#7550)Richard van der Hoff2020-05-221-2/+2
| | | consistency ftw
* Fix fallback value for account_threepid_delegates.email (#7316)Andrew Morgan2020-04-291-3/+8
|
* Fix minor issues with email config (#6962)Richard van der Hoff2020-02-241-36/+30
| | | | | | * Give `notif_template_html`, `notif_template_text` default values (fixes #6960) * Don't complain if `smtp_host` and `smtp_port` are unset, since they have sensible defaults (fixes #6961) * Set the example for `enable_notifs` to `True`, for consistency and because it's more useful * Raise errors as ConfigError rather than RuntimeError for nicer formatting
* Clarify the `account_validity` and `email` sections of the sample ↵Richard van der Hoff2020-01-171-107/+115
| | | | | | | | | | | configuration. (#6685) Generally try to make this more comprehensible, and make it match the conventions. I've removed the documentation for all the settings which allow you to change the names of the template files, because I can't really see why they are useful.
* Bump version of mypyErik Johnston2019-12-121-1/+2
|
* Clarifications for the email configuration settings. (#6423)Richard van der Hoff2019-11-281-1/+16
| | | Cf #6422
* Remove assertion and provide a clear warning on startup for missing ↵Andrew Morgan2019-11-261-0/+2
| | | | public_baseurl (#6379)
* Replace instance variations of homeserver with correct case/spacingAndrew Morgan2019-11-121-1/+1
|
* Add config linting script that checks for bool casing (#6203)Andrew Morgan2019-10-231-2/+2
| | | | | Add a linting script that enforces all boolean values in the default config be lowercase. This has annoyed me for a while so I decided to fix it.
* Refactor HomeserverConfig so it can be typechecked (#6137)Amber Brown2019-10-101-0/+2
|
* Allow HS to send emails when adding an email to the HS (#6042)Andrew Morgan2019-09-201-0/+36
|
* Allow Synapse to send registration emails + choose Synapse or an external ↵Andrew Morgan2019-09-061-28/+94
| | | | | | | | | | | | | | | | server to handle 3pid validation (#5987) This is a combination of a few different PRs, finally all being merged into `develop`: * #5875 * #5876 * #5868 (This one added the `/versions` flag but the flag itself was actually [backed out](https://github.com/matrix-org/synapse/commit/891afb57cbdf9867f2848341b29c75d6f35eef5a#diff-e591d42d30690ffb79f63bb726200891) in #5969. What's left is just giving /versions access to the config file, which could be useful in the future) * #5835 * #5969 * #5940 Clients should not actually use the new registration functionality until https://github.com/matrix-org/synapse/pull/5972 is merged. UPGRADE.rst, changelog entries and config file changes should all be reviewed closely before this PR is merged.
* public_base_url is actually public_baseurlAaron Raimist2019-08-261-1/+1
| | | | Signed-off-by: Aaron Raimist <aaron@raim.ist>
* Fix up password reset template config names (#5863)Andrew Morgan2019-08-151-8/+8
| | | | | Fixes #5833 The emailconfig code was attempting to pull incorrect config file names. This corrects that, while also marking a difference between a config file variable that's a filepath versus a str containing HTML.
* Make errors about email password resets much clearer (#5616)Andrew Morgan2019-07-051-11/+8
| | | The runtime errors that dealt with local email password resets talked about config options that users may not even have in their config file yet (if upgrading). Instead, the cryptic errors are now replaced with hopefully much more helpful ones.
* Make it clearer that the template dir is relative to synapse's root dir (#5543)Andrew Morgan2019-06-271-1/+9
| | | Helps address #5444
* Don't load the generated config as the default.Richard van der Hoff2019-06-241-1/+1
| | | | It's too confusing.
* Pass config_dir_path and data_dir_path into Config.read_config. (#5522)Richard van der Hoff2019-06-241-1/+1
| | | | | | * Pull config_dir_path and data_dir_path calculation out of read_config_files * Pass config_dir_path and data_dir_path into read_config
* Run Black. (#5482)Amber Brown2019-06-201-39/+32
|
* Don't warn user about password reset disabling through config code (#5387)Andrew Morgan2019-06-111-6/+5
| | | | | | | Moves the warning about password resets being disabled to the point where a user actually tries to reset their password. Is this an appropriate place for it to happen? Also removed the disabling of msisdn password resets when you don't have an email config, as that just doesn't make sense. Also change the error a user receives upon disabled passwords to specify that only email-based password reset is disabled.
* Add ability to perform password reset via email without trusting the ↵Andrew Morgan2019-06-061-15/+138
| | | | | | | | | | | | identity server (#5377) Sends password reset emails from the homeserver instead of proxying to the identity server. This is now the default behaviour for security reasons. If you wish to continue proxying password reset requests to the identity server you must now enable the email.trust_identity_server_for_password_resets option. This PR is a culmination of 3 smaller PRs which have each been separately reviewed: * #5308 * #5345 * #5368
* Only parse from email if providedBrendan Abolivier2019-06-041-4/+5
|
* LintBrendan Abolivier2019-06-041-1/+0
|
* Make account validity renewal emails work when email notifs are disabledBrendan Abolivier2019-06-041-42/+57
|
* Don't crash on lack of expiry templatesBrendan Abolivier2019-04-181-2/+6
|
* Send out emails with links to extend an account's validity periodBrendan Abolivier2019-04-171-1/+6
|
* Calculate absolute path for email templatesRichard van der Hoff2018-10-191-22/+18
|
* Put the warning blob at the top of the fileRichard van der Hoff2018-10-171-6/+9
|
* Ship the email templates as package_dataRichard van der Hoff2018-10-171-3/+30
| | | | | | | | | | move the example email templates into the synapse package so that they can be used as package data, which should mean that all of the packaging mechanisms (pip, docker, debian, arch, etc) should now come with the example templates. In order to grandfather in people who relied on the templates being in the old place, check for that situation and fall back to using the defaults if the templates directory does not exist.
* Support authenticated SMTPDaniel Dent2017-04-051-0/+16
| | | | | | Closes (SYN-714) #1385 Signed-off-by: Daniel Dent <matrixcontrib@contactdaniel.net>
* Allow configuring the Riot URL used in notification emailsAdrian Perez de Castro2017-01-131-0/+7
| | | | | | | | | | The URLs used for notification emails were hardcoded to use either matrix.to or vector.im; but for self-hosted setups where Riot is also self-hosted it may be desirable to allow configuring an alternative Riot URL. Fixes #1809. Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
* brand the email from headerMatthew Hodgson2016-06-021-1/+1
|
* More consistent config namingDavid Baker2016-05-101-1/+1
|
* Add config option to not send email notifs for new usersDavid Baker2016-05-101-0/+4
|
* fix layout; handle app naming in synapse, not jinjaMatthew Hodgson2016-05-051-0/+5
|
* fix assorted typos in default configMatthew Hodgson2016-05-041-3/+3
|
* Try imports in configDavid Baker2016-04-291-0/+7
|
* Default enable email notifs to FalseDavid Baker2016-04-291-1/+1
|
* Nicer get() shorthandDavid Baker2016-04-291-3/+2
|
* Remove redundant docstringDavid Baker2016-04-291-4/+0
|
* Correct default template and add text templateDavid Baker2016-04-291-1/+2
|
* Send mail notifs with a plaintext part tooDavid Baker2016-04-291-0/+2
|
* pep8David Baker2016-04-281-1/+1
|
* Hopefully all remaining bits for email notifsDavid Baker2016-04-271-1/+8
| | | | Add public facing base url to the server so synapse knows what URL to use when converting mxc to http urls for use in emails
* Generate mails from a templateDavid Baker2016-04-201-10/+25
|
* Send a rather basic email notifDavid Baker2016-04-201-0/+62
Also pep8 fixes