HomePhabricator

(Ab)Use User::newSystemUser to disable accounts

Description

(Ab)Use User::newSystemUser to disable accounts

While we're not actually turning the user into a "system" user, it has
the same end result: all passwords and other authentication credentials
removed or set to something invalid, email blanked, token invalidated,
and existing sessions dropped. So let's just use that if possible
instead of duplicating all the code, since "all the code" has become
somewhat more complex with the introduction of SessionManager and
AuthManager.

Bug: T110765
Change-Id: Ifce387d702860bca5ae9cdd90b660627258ff17e
(cherry picked from commit 04e4544163b738e029a287755f068723c2b53ba1)

Details

Provenance
AnomieAuthored on May 19 2016, 5:59 PM
TgrCommitted on Jun 29 2016, 7:12 AM
Parents
rEDAC82c3f0e520fd: Creating new REL1_27 branch
Branches
Unknown
Tags
Unknown
References
REL1_27, refs/changes/10/296510/1
ChangeId
Ifce387d702860bca5ae9cdd90b660627258ff17e