hydroxide/auth
Daniel Bertalan d18edadd05 Fix 2FA login with both TOTP and U2F enabled
The `2FA.Enabled` field in `/auth`'s JSON output seems to be a bitmap of
some sort, as the API returns `3` when both TOTP and U2F login is on.
This commit changes some `Enabled == 1` checks to `Enabled != 0` to
handle this case properly.

Fixes #250
2023-04-14 18:48:33 +02:00
..
auth.go Fix 2FA login with both TOTP and U2F enabled 2023-04-14 18:48:33 +02:00