WGDashboard icon indicating copy to clipboard operation
WGDashboard copied to clipboard

OTP Reset

Open chappyboy opened this issue 1 year ago • 7 comments

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

chappyboy avatar Feb 23 '25 18:02 chappyboy

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 :)

donaldzou avatar Feb 24 '25 03:02 donaldzou

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.

barryboom avatar Feb 24 '25 16:02 barryboom

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.

DaanSelen avatar Feb 26 '25 14:02 DaanSelen

@chappyboy Hi is this working for you?

donaldzou avatar Mar 06 '25 17:03 donaldzou

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.

That's true... but I would assume people who come across this project know how to use bash and nano?

donaldzou avatar Mar 06 '25 17:03 donaldzou

When I reset the 2FA, the OTP code is always the same. It is not good

Ahriman avatar May 10 '25 18:05 Ahriman

When I reset the 2FA, the OTP code is always the same. It is not good

Hi, please update to the latest version and this would be fixed :)

donaldzou avatar May 11 '25 17:05 donaldzou

Closing due to inactivity

donaldzou avatar Jun 24 '25 07:06 donaldzou