NHAS / wag

Simple Wireguard 2FA
BSD 3-Clause "New" or "Revised" License
486 stars 27 forks source link

Change totp secret from gui #70

Closed IsaacBreuer closed 9 months ago

IsaacBreuer commented 9 months ago

I have tried using totp with a hardware token that has a pre programed seed as secret,

What I did so far was setting up a regular totp with app, than opening the sql db and changing just the secret to my hardware token, worked out great, ust asking if it's possible to do the same from gui.

NHAS commented 9 months ago

You can do this by hitting "reset Mfa" after selecting a user

IsaacBreuer commented 9 months ago

No, that will just create a new random secret, but won't allow me to specify a secret

NHAS commented 9 months ago

Ah right. No, wag does not have a way of doing this

IsaacBreuer commented 9 months ago

Wag has access to the db, so it would be posible to just as an input and update the record, just as I did it manually.

It's not a big deal, I am able to achieve it manually.