Management Commands

Status

class two_factor.management.commands.two_factor_status.Command(stdout=None, stderr=None, no_color=False)

Command to check two-factor authentication status for certain users.

The command accepts any number of usernames, and will list if OTP is enabled or disabled for those users.

Example usage:

manage.py status bouke steve
bouke: enabled
steve: disabled

Disable

class two_factor.management.commands.two_factor_disable.Command(stdout=None, stderr=None, no_color=False)

Command for disabling two-factor authentication for certain users.

The command accepts any number of usernames, and will remove all OTP devices for those users.

Example usage:

manage.py disable bouke steve