How to disable two factor in WHM

0 5 years ago

Trapped in WHM after enabling 2 factor authentication in WHM? If you or your client lost phone and don’t know how to reset 2 factor authentication then use below SSH command to reset that.

First login to your server via SSH as root user then copy paste below command.

Two Factor reset for root user

whmapi1 twofactorauth_disable_policy

Two Factor reset for client or other users

uapi --user=root TwoFactorAuth remove_user_configuration