summary refs log tree commit diff
path: root/synapse/handlers/deactivate_account.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit '74976a8e4' into dinsicAndrew Morgan2020-12-311-5/+8
|\
| * Move additional tasks to the background worker, part 4 (#8513)Patrick Cloke2020-10-131-1/+1
| |
| * Remove the deprecated Handlers object (#8494)Patrick Cloke2020-10-091-1/+1
| | | | | | All handlers now available via get_*_handler() methods on the HomeServer.
| * Add type hints to some handlers (#8505)Patrick Cloke2020-10-091-3/+6
| |
* | Allow users to click account renewal links multiple times without hitting an ↵Andrew Morgan2020-12-301-1/+1
| | | | | | | | 'Invalid Token' page (#74)
* | Merge commit '4325be1a5' into anoa/dinsic_release_1_21_xAndrew Morgan2020-10-211-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '4325be1a5': Fix missing null character check on guest_access room state Fixed a bug with reactivating users with the admin API (#8362) Admin API for reported events (#8217) Fix wording of deprecation notice in changelog Deprecation warning for synapse admin api being accessible under /_matrix Create function to check for long names in devices (#8364) Add a comment re #1691 Fix a bad merge from release-v1.20.0. (#8354) Admin API for querying rooms where a user is a member (#8306) Catch-up after Federation Outage (bonus): Catch-up on Synapse Startup (#8322) Simplify super() calls to Python 3 syntax. (#8344) Allow appservice users to /login (#8320) Update test logging to be able to accept braces (#8335) Move lint dependencies to extras_require (#8330)
| * Simplify super() calls to Python 3 syntax. (#8344)Patrick Cloke2020-09-181-1/+1
| | | | | | | | | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py
* | Merge commit '13d77464c' into anoa/dinsic_release_1_18_xAndrew Morgan2020-08-031-4/+18
|\| | | | | | | | | * commit '13d77464c': Follow-up to admin API to re-activate accounts (#7908)
| * Follow-up to admin API to re-activate accounts (#7908)Patrick Cloke2020-07-221-4/+18
| |
* | Merge commit 'a973bcb8a' into anoa/dinsic_release_1_18_xAndrew Morgan2020-08-031-20/+28
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a973bcb8a': Add some tiny type annotations (#7870) Remove obsolete comment. Ensure that calls to `json.dumps` are compatible with the standard library json. (#7836) Avoid brand new rooms in `delete_old_current_state_events` (#7854) Allow accounts to be re-activated from the admin APIs. (#7847) Fix tests Fix typo Newsfile Use get_users_in_room rather than state handler in typing for speed Fix client reader sharding tests (#7853) Convert E2E key and room key handlers to async/await. (#7851) Return the proper 403 Forbidden error during errors with JWT logins. (#7844) remove `retry_on_integrity_error` wrapper for persist_events (#7848)
| * Allow accounts to be re-activated from the admin APIs. (#7847)Patrick Cloke2020-07-151-20/+28
| |
* | Merge commit '457096e6d' into anoa/dinsic_release_1_18_xAndrew Morgan2020-08-031-1/+2
|\| | | | | | | | | * commit '457096e6d': Support handling registration requests across multiple client readers. (#7830)
| * Support handling registration requests across multiple client readers. (#7830)Patrick Cloke2020-07-131-1/+2
| |
* | Performance improvements to marking expired users as inactive (#47)Andrew Morgan2020-06-191-1/+1
| | | | | | This is a performance-related improvement to #13, which queried and hid active *and* already inactive users, one-by-one. This PR updates the code to query only **active**, expired users, all at once, and then mark them as inactive, all at once.
* | Add `local_current_membership` table (#6655)Andrew Morgan2020-03-231-1/+1
|\| | | | | | | | | * commit '28c98e51f': Add `local_current_membership` table (#6655)
| * Add `local_current_membership` table (#6655)Erik Johnston2020-01-151-1/+1
| | | | | | | | | | | | | | Currently we rely on `current_state_events` to figure out what rooms a user was in and their last membership event in there. However, if the server leaves the room then the table may be cleaned up and that information is lost. So lets add a table that separately holds that information.
* | Fix exceptions when attempting to backfill (#6576)Andrew Morgan2020-03-201-1/+1
|\ \ | | | | | | | | | | | | * commit '03d3792f3': Fix exceptions when attempting to backfill (#6576)
* \ \ Port some admin handlers to async/await (#6559)Andrew Morgan2020-03-201-30/+24
|\ \ \ | | |/ | |/| | | | | | | * commit '3d46124ad': Port some admin handlers to async/await (#6559)
| * | Port some admin handlers to async/await (#6559)Erik Johnston2019-12-191-30/+24
| |/
* | Remove local threepids on account deactivation (#6426)Andrew Morgan2020-03-181-0/+3
|\| | | | | | | | | * commit 'a9c44d400': Remove local threepids on account deactivation (#6426)
| * Remove local threepids on account deactivation (#6426)Andrew Morgan2019-11-281-0/+3
| |
| * Incorporate reviewBrendan Abolivier2019-09-271-4/+2
| |
| * Update synapse/handlers/deactivate_account.pyBrendan Abolivier2019-09-271-1/+3
| | | | | | Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
| * Update synapse/handlers/deactivate_account.pyBrendan Abolivier2019-09-271-1/+1
| | | | | | Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
| * LintBrendan Abolivier2019-09-271-3/+1
| |
| * Fixup and add some loggingBrendan Abolivier2019-09-271-1/+9
| |
| * Reject pending invites on deactivationBrendan Abolivier2019-09-271-0/+31
| |
* | Implement MSC2290 (#6043)Andrew Morgan2020-02-251-1/+3
|\|
| * Implement MSC2290 (#6043)Andrew Morgan2019-09-231-1/+3
| | | | | | | | | | | | | | Implements MSC2290. This PR adds two new endpoints, /unstable/account/3pid/add and /unstable/account/3pid/bind. Depending on the progress of that MSC the unstable prefix may go away. This PR also removes the blacklist on some 3PID tests which occurs in #6042, as the corresponding Sytest PR changes them to use the new endpoints. Finally, it also modifies the account deactivation code such that it doesn't just try to deactivate 3PIDs that were bound to the user's account, but any 3PIDs that were bound through the homeserver on that user's account.
* | Replace returnValue with return (#5736)Andrew Morgan2020-02-191-1/+1
|\|
| * Replace returnValue with return (#5736)Amber Brown2019-07-231-1/+1
| |
| * Run Black. (#5482)Amber Brown2019-06-201-5/+7
| |
* | Delete duplicate user deactivationAndrew Morgan2020-02-141-7/+0
| |
* | Dinsic Blacking with black==18.6b2Andrew Morgan2020-02-111-5/+7
| |
* | Merge remote-tracking branch 'dinsic/dinsic' into dinsic-release-v1.1.0Andrew Morgan2020-02-101-0/+37
|\ \
| * | s/return/defer.returnValue/Brendan Abolivier2019-09-271-1/+1
| | |
| * | Incorporate reviewBrendan Abolivier2019-09-271-4/+2
| | |
| * | Update synapse/handlers/deactivate_account.pyBrendan Abolivier2019-09-271-1/+3
| | | | | | | | | Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
| * | Update synapse/handlers/deactivate_account.pyBrendan Abolivier2019-09-271-0/+4
| | | | | | | | | Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
| * | LintBrendan Abolivier2019-09-271-1/+34
| | |
* | | Don't send renewal emails to deactivated usersAndrew Morgan2020-02-101-0/+4
|\ \ \ | | |/ | |/|
| * | Don't send renewal emails to deactivated usersBrendan Abolivier2019-06-141-0/+6
| | |
* | | Track deactivated accounts in the database (#5378)Andrew Morgan2020-02-101-0/+3
|\| | | |/ |/|
| * Track deactivated accounts in the database (#5378)Brendan Abolivier2019-06-141-0/+4
| |
* | Don't send renewal emails to deactivated usersBrendan Abolivier2019-06-141-0/+6
| |
* | Track deactivated accounts in the database (#5378)Brendan Abolivier2019-06-141-0/+4
| |
* | Merge branch 'develop' into dinsicAndrew Morgan2019-04-151-1/+5
|\|
| * Correctly handle id_server paramErik Johnston2019-04-021-0/+1
| |
| * Allowing specifying IS to use in unbind API.Erik Johnston2019-04-011-1/+4
| | | | | | | | | | | | | | | | | | | | By default the homeserver will use the identity server used during the binding of the 3PID to unbind the 3PID. However, we need to allow clients to explicitly ask the homeserver to unbind via a particular identity server, for the case where the 3PID was bound out of band from the homeserver. Implements MSC915.
* | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/dinsic-mergedErik Johnston2019-03-211-0/+1
|\|
| * Use flagsErik Johnston2019-03-201-0/+1
| |
* | add im.vector.hide_profile to user account_dataMatthew Hodgson2018-11-041-1/+1
| |
* | merge master into dinsic, again...Matthew Hodgson2018-11-031-2/+2
|\|
| * Give some more things logcontexts (#4077)Richard van der Hoff2018-10-231-2/+2
| |
* | merge in masterMatthew Hodgson2018-10-221-2/+11
|\|
| * Don't fail requests to unbind 3pids for non supporting ID serversErik Johnston2018-08-081-2/+11
| | | | | | | | | | | | | | | | | | | | Older identity servers may not support the unbind 3pid request, so we shouldn't fail the requests if we received one of 400/404/501. The request still fails if we receive e.g. 500 responses, allowing clients to retry requests on transient identity server errors that otherwise do support the API. Fixes #3661
* | Merge remote-tracking branch 'origin/master' into dinsicDavid Baker2018-07-191-3/+4
|\|
| * run isortAmber Brown2018-07-091-3/+4
| |
* | Remove deactivated users from profile searchDavid Baker2018-07-181-0/+4
|/
* add GDPR erase param to deactivate APIMatthew Hodgson2018-06-261-0/+1
|
* Merge pull request #3441 from matrix-org/erikj/redo_erasureErik Johnston2018-06-251-1/+6
|\ | | | | Fix user erasure and re-enable
| * Revert "Revert "Merge pull request #3431 from ↵Erik Johnston2018-06-251-1/+6
| | | | | | | | | | | | matrix-org/rav/erasure_visibility"" This reverts commit 1d009013b3c3e814177afc59f066e02a202b21cd.
* | Remove all global reactor imports & pass it around explicitly (#3424)Amber Brown2018-06-251-2/+2
|/
* Revert "Merge pull request #3431 from matrix-org/rav/erasure_visibility"Richard van der Hoff2018-06-221-6/+1
| | | | | This reverts commit ce0d911156b355c5bf452120bfb08653dad96497, reversing changes made to b4a5d767a94f1680d07edfd583aae54ce422573e.
* mark accounts as erased when requestedRichard van der Hoff2018-06-121-1/+6
|
* Fix commentDavid Baker2018-06-041-1/+1
|
* Merge remote-tracking branch 'origin/develop' into dbkr/unbindDavid Baker2018-05-241-0/+4
|\
| * Remove users from user directory on deactivateDavid Baker2018-05-241-0/+4
| |
* | pep8David Baker2018-05-241-3/+6
| |
* | Hit the 3pid unbind endpoint on deactivationDavid Baker2018-05-231-1/+21
|/
* comment typoDavid Baker2018-05-221-1/+1
|
* Catch failure to part user from roomDavid Baker2018-05-101-7/+13
|
* Many docstringsDavid Baker2018-05-101-0/+24
|
* Oops, don't call function passed to run_in_backgroundDavid Baker2018-05-101-1/+1
|
* Prefix internal functionsDavid Baker2018-05-091-7/+7
|
* Indent failDavid Baker2018-05-091-1/+1
|
* Part deactivated users in the backgroundDavid Baker2018-05-091-1/+34
| | | | | One room at a time so we don't take out the whole server with leave events, and restart at server restart.
* Part user from rooms on account deactivateDavid Baker2018-05-081-1/+15
| | | | | | | This implements this very crudely: this probably isn't viable because parting a user from all their rooms could take a long time, and if the HS gets restarted in that time the process will be aborted.
* Delete devices in various logout situationsRichard van der Hoff2017-11-291-0/+8
| | | | | | | | | | | | | Make sure that we delete devices whenever a user is logged out due to any of the following situations: * /logout * /logout_all * change password * deactivate account (by the user or by an admin) * invalidate access token from a dynamic module Fixes #2672.
* Move deactivate_account into its own handlerRichard van der Hoff2017-11-291-0/+44
Non-functional refactoring to move deactivate_account. This means that we'll be able to properly deactivate devices and access tokens without introducing a dependency loop.