document occ command to enable/disable 2fa for a user

This commit is contained in:
Christoph Wurst
2016-06-08 15:37:39 +02:00
parent b50ab08d21
commit 9f3d0f3f90

View File

@@ -39,6 +39,7 @@ occ Command Directory
* :ref:`versions_label`
* :ref:`command_line_installation_label`
* :ref:`command_line_upgrade_label`
* :ref:`two_factor_auth_label`
.. _http_user_label:
@@ -1271,3 +1272,17 @@ option::
You can perform this simulation manually with the ``--dry-run`` option::
sudo -u www-data php occ upgrade --dry-run
Two-factor authentication
-------------------------
If a two-factor provider app is enabled, it is enabled for all users by default
(though the provider can decide whether or not the user has to pass the challenge).
In the case of an user losing access to the second factor (e.g. lost phone with
two-factor SMS verification), the admin can (temporarily) disable the two-factor
check for that user via the occ command::
sudo -u www-data php occ twofactor:disable <username>
To re-enable two-factor auth again use the following commmand::
sudo -u www-data php occ twofactor:enable <username>