Disabling two-step authentication when access to the one-time codes is lost
Why?
You may need to disable two-step authentication (hereinafter - 2FA) if for some reason it is not possible to enter a temporary code from the application.
Instructions
Disabling 2FA without a time code will be different for the "root" user and a normal user, but in both cases, you will need to log in as root in the server console.
If you do not have access to the ispmanager panel as the "root" user, please contact your server administrator or your hosting provider and provide them with these instructions.
For the root user
To disable 2FA for the "root" user, connect to the server via SSH under the "root" user and enter the following command:
/usr/local/mgr5/sbin/mgrctl -m ispmgr usrparam elid=root disable_totp=on sok=ok
For users
To disable 2FA for common users, connect to the server via SSH under the "root" user and enter the following command:
/usr/local/mgr5/sbin/mgrctl -m ispmgr usrparam elid=<username> disable_totp=on su=<username> sok=ok
Alternative authorization method
Alternatively, you can authorize in the panel by generating a temporary key.
In this case, 2FA is disabled in the settings for the particular user through the panel’s web interface.