You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use this class on a cPanel instance with 2 Factor authentication, you need to pass the secret into the class constructor.
56
+
```
57
+
$capi = new cpanelAPI('user', 'password', 'cpanel.example.com', 'secret');
58
+
```
59
+
60
+
The secret can be found on the 2fa setup page. See: https://documentation.cpanel.net/display/ALD/Two-Factor+Authentication+for+cPanel#Two-FactorAuthenticationforcPanel-Configure2FA
0 commit comments