1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-04 12:42:43 +01:00
phorge-phorge/src/applications/auth/xaction
epriestley 7805b217ad Prevent users from editing, disabling, or swapping their primary contact number while they have SMS MFA
Summary:
Depends on D20022. Ref T13222. Since you can easily lock yourself out of your account by swapping to a bad number, prevent contact number edits while "contact number" MFA (today, always SMS) is enabled.

(Another approach would be to bind factors to specific contact numbers, and then prevent that number from being edited or disabled while SMS MFA was attached to it. However, I think that's a bit more complicated and a little more unwieldy, and ends up in about the same place as this. I'd consider it more strongly in the future if we had like 20 users say "I have 9 phones" but I doubt this is a real use case.)

Test Plan:
  - With SMS MFA, tried to edit my primary contact number, disable it, and promote another number to become primary. Got a sensible error message in all cases.
  - After removing SMS MFA, did all that stuff with no issues.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13222

Differential Revision: https://secure.phabricator.com/D20023
2019-01-23 14:18:33 -08:00
..
PhabricatorAuthContactNumberNumberTransaction.php Prevent users from editing, disabling, or swapping their primary contact number while they have SMS MFA 2019-01-23 14:18:33 -08:00
PhabricatorAuthContactNumberPrimaryTransaction.php Prevent users from editing, disabling, or swapping their primary contact number while they have SMS MFA 2019-01-23 14:18:33 -08:00
PhabricatorAuthContactNumberStatusTransaction.php Prevent users from editing, disabling, or swapping their primary contact number while they have SMS MFA 2019-01-23 14:18:33 -08:00
PhabricatorAuthContactNumberTransactionType.php Prevent users from editing, disabling, or swapping their primary contact number while they have SMS MFA 2019-01-23 14:18:33 -08:00
PhabricatorAuthFactorProviderNameTransaction.php Add a skeleton for configurable MFA provider types 2019-01-16 12:27:23 -08:00
PhabricatorAuthFactorProviderTransactionType.php Add a skeleton for configurable MFA provider types 2019-01-16 12:27:23 -08:00
PhabricatorAuthMessageTextTransaction.php Add "Auth Messages" to support customizing onboarding/welcome flows 2019-01-18 19:53:19 -08:00
PhabricatorAuthMessageTransactionType.php Add "Auth Messages" to support customizing onboarding/welcome flows 2019-01-18 19:53:19 -08:00
PhabricatorAuthPasswordRevokeTransaction.php Add a more modern object for storing password hashes 2018-01-22 15:35:28 -08:00
PhabricatorAuthPasswordTransactionType.php Add a more modern object for storing password hashes 2018-01-22 15:35:28 -08:00
PhabricatorAuthPasswordUpgradeTransaction.php Add test coverage to the PasswordEngine upgrade workflow and fix a few bugs 2018-01-23 10:55:35 -08:00