If you no longer use TOTP two-factor authentication, you can disable it via the interface or the tacli command-line tool. After the configuration is disabled, you will not need to enter a TOTP code the next time you log in to AOC.
To re-enable it, refer to Enabling the TOTP code and repeat the binding process.
Procedure
Click the user icon in the upper right corner of the AOC interface and select Personal settings.
Select TOTP code. In the TOTP two-factor authentication section, click Disable.
In the Disable TOTP two-factor authentication dialog box, read the message and click Disable.
Result
After the configuration is disabled, the TOTP two-factor authentication configuration for this account will be cleared, and you will not need to enter a TOTP code when logging in next time.
Prerequisite
You have downloaded and installed the AUTHN CLI tool (tacli) in advance.
Procedure
Select one of the following two scenarios based on your situation.
Scenario 1: Disable for yourself
Use this method to disable the TOTP code for yourself when you can log in to the account normally. This command requires identity credentials (such as a token or username and password).
tacli --endpoint "https://example.com" --token "token" totp disabletacli --endpoint "https://example.com" --username "username" --password "password" totp disableParameter description:
https://example.com: The access address of AOC.--token "token": The access token.--username "username" --password "password": The username and password of the current account.
Scenario 2: Disable for a specified user using a recovery code
Use this method when a user cannot log in due to device loss or other reasons, or when an administrator needs to disable the configuration for a user. This operation does not require logging in, but you need to provide the target user's ID and recovery code.
tacli --endpoint https://example.com totp disable --user-id "user-id" --recovery-code "recovery-code"Parameter description:
https://example.com: The access address of AOC.--user-id "user-id": The user ID.--recovery-code "recovery-code": The one-time recovery code.