summary refs log tree commit diff
path: root/synapse/config/saml2_config.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-05-28 16:47:42 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-05-28 16:52:45 +0100
commit52839886d664576831462e033b88e5aba4c019e3 (patch)
tree33f49429d93c882115ea75a3fc1a82c68051b822 /synapse/config/saml2_config.py
parentChangelog (diff)
downloadsynapse-52839886d664576831462e033b88e5aba4c019e3.tar.xz
Allow configuring a range for the account validity startup job
When enabling the account validity feature, Synapse will look at startup for registered account without an expiration date, and will set one equals to 'now + validity_period' for them. On large servers, it can mean that a large number of users will have the same expiration date, which means that they will all be sent a renewal email at the same time, which isn't ideal.
In order to mitigate this, this PR allows server admins to define a 'max_delta' so that the expiration date is a random value in the [now + validity_period ; now + validity_period + max_delta] range. This allows renewal emails to be progressively sent over a configured period instead of being sent all in one big batch.
Diffstat (limited to 'synapse/config/saml2_config.py')
0 files changed, 0 insertions, 0 deletions