Applications: try Multi-Factor Auth to Disable/Enable apps
Summary:
If the Phorge install has an MFA provider configured at http://phorge.localhost/auth/mfa/, then MFA is required when trying to "Enable" or "Disable" any application.
Note that, in case of issues with an MFA step, you can disable a non-functioning MFA using the command './bin/auth strip' - as usual.
This change is a continuation of the work of Cigaryno in https://we.phorge.it/D25935
Closes T15490
Test Plan:
* Have an administrator without MFA activated
** Disable or Enable a random application, like "Nuance": http://phorge.localhost/applications/view/PhabricatorNuanceApplication/
** You still see the question: "Really disable the Nuance application?"
** The "Cancel" button still works.
** The "Disable" button still works.
** The "Enable" button still works.
* Have an administrator with at least one MFA activated and try again:
** http://phorge.localhost/applications/view/PhabricatorNuanceApplication/
** You still see the same question: "Really disable the Nuance application?"
** The "Cancel" button still works.
** The "Disable" button leads to MFA. Then it works.
** The "Enable" button leads to MFA. Then it works.
** If during the MFA you click "Cancel", it just "Cancel".
In all cases, you still see the transactions:
* "FooAdminName disabled this application."
* "FooAdminName enabled this application."
Reviewers: O1 Blessed Committers, aklapper
Reviewed By: O1 Blessed Committers, aklapper
Subscribers: aklapper, tobiaswiese, Matthew, Cigaryno
Maniphest Tasks: T15490
Differential Revision: https://we.phorge.it/D26613