Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTP Reset #631

Open
chappyboy opened this issue Feb 23, 2025 · 3 comments
Open

OTP Reset #631

chappyboy opened this issue Feb 23, 2025 · 3 comments

Comments

@chappyboy
Copy link

I lost the phone having my TOTP Authenticator. How can I get the TOTP to reset?

@donaldzou
Copy link
Owner

Hi! You can simply do the following:

  1. SSH into the server
  2. Navigate to WGDashboard's directory: WGDashboard/src
  3. Stop WGDashboard
  4. Use a text editor like nano to open wg-dashboard.ini, you might need to sudo
  5. Remove these following lines under the section of [Account]. Be careful don't remove other stuff
    • enable_totp = false
    • totp_verified = false
    • totp_key = ...
  6. Save the file and restart WGDashboard.
  7. Sign in with your username and password, head to Settings, then enable 2FA :)

@barryboom
Copy link

i would recommend instead using WinSCP browse to the location and use a Notepad++ to edit and save rather than via putty and SSH using nano editor which is confusing at times if not familuar with it.

@DaanSelen
Copy link
Collaborator

i would recommend instead using WinSCP browse to the location and use a Notepad++ to edit and save rather than via putty and SSH using nano editor which is confusing at times if not familuar with it.

The protocols are still the same, its just the way the user interacts with it. Terminal users will use ssh with nano/vim and people who prefer graphical user interfaces can use WinSCP or Filezilla. No option is better, but just preferences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants