NHAS / wag

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

[Bug] Unable to logout 8.0.0-beta2 #103

Closed JSmith-Aura closed 2 months ago

JSmith-Aura commented 2 months ago
could not deauthenticate: etcdserver: key is not provided

Is caused by: https://github.com/NHAS/wag/blob/c1c87f3e1dd5446d5469462c74f94df603a68e7a/internal/data/devices.go#L132

This is a hang over from using json to encode device references

Additionally, the user should not be "unknown" in this context, and makes the logs confusing: https://github.com/NHAS/wag/blob/c1c87f3e1dd5446d5469462c74f94df603a68e7a/internal/webserver/web.go#L676