Port "Allow users to click account renewal links multiple times without...
Port "Allow users to click account renewal links multiple times without 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).
Showing
- UPGRADE.rst 23 additions, 0 deletionsUPGRADE.rst
- changelog.d/9832.feature 1 addition, 0 deletionschangelog.d/9832.feature
- docs/sample_config.yaml 85 additions, 63 deletionsdocs/sample_config.yaml
- synapse/api/auth.py 4 additions, 2 deletionssynapse/api/auth.py
- synapse/config/_base.pyi 2 additions, 0 deletionssynapse/config/_base.pyi
- synapse/config/account_validity.py 165 additions, 0 deletionssynapse/config/account_validity.py
- synapse/config/emailconfig.py 1 addition, 1 deletionsynapse/config/emailconfig.py
- synapse/config/homeserver.py 2 additions, 1 deletionsynapse/config/homeserver.py
- synapse/config/registration.py 0 additions, 129 deletionssynapse/config/registration.py
- synapse/handlers/account_validity.py 77 additions, 24 deletionssynapse/handlers/account_validity.py
- synapse/handlers/deactivate_account.py 3 additions, 1 deletionsynapse/handlers/deactivate_account.py
- synapse/push/pusherpool.py 5 additions, 3 deletionssynapse/push/pusherpool.py
- synapse/res/templates/account_previously_renewed.html 1 addition, 0 deletionssynapse/res/templates/account_previously_renewed.html
- synapse/res/templates/account_renewed.html 1 addition, 1 deletionsynapse/res/templates/account_renewed.html
- synapse/rest/client/v2_alpha/account_validity.py 25 additions, 7 deletionssynapse/rest/client/v2_alpha/account_validity.py
- synapse/storage/databases/main/registration.py 46 additions, 16 deletionssynapse/storage/databases/main/registration.py
- synapse/storage/databases/main/schema/delta/59/12account_validity_token_used_ts_ms.sql 18 additions, 0 deletions...n/schema/delta/59/12account_validity_token_used_ts_ms.sql
- tests/rest/client/v2_alpha/test_register.py 37 additions, 15 deletionstests/rest/client/v2_alpha/test_register.py
Loading
Please register or sign in to comment