Enabling Two-Factor Authentication (2FA) for Gunbot
Use these steps to enable Two-Factor Authentication (2FA) for an extra layer of security on your Gunbot setup.
Why 2FA Matters
Info
Two-Factor Authentication (2FA) adds a second layer of security to an online account. Accessing the account requires two types of information: something the user knows (password) and something the user has (a security token or code from an authenticator app).
Two-Factor Authentication adds a one-time password (OTP) from an authenticator app (such as Authy) alongside your regular password each time you log in.
Step-by-Step Guide to Enable 2FA
1. Accessing the 2FA Settings
Navigate to http://localhost:3001/setup#advanced in your browser. Locate and expand the 2FA tab to view the settings.
2. Enabling 2FA
Click on the Enable 2FA switch. When enabled, a Show QR Code option appears.
3. Setting Up Your Authenticator App
Use your authenticator app to scan the displayed QR Code. This links your Gunbot account to the app and starts generating the 6-digit OTPs needed for login.

info
Lost Access to Your 2FA?
If you lose access to your 2FA code or device, disable this feature by editing config.js. Change twoFA from true to false, then restart Gunbot to regain access.
Conclusion
By following these steps, you've added a second login factor to your Gunbot setup.