TOPT 2fA Authentication Failed

Started by opnblue, January 13, 2025, 11:04:06 AM

Previous topic - Next topic
Hi all. Testing 2fa returns this error message without further context or error code:

You cannot view this attachment.

I can`t find anything related in the logs. Has anyone any idea how to troubleshoot and fix this?

24.7.11_2 directly installed on a dedicated box.

Thanks! :)

Previously, I encounter this error. Then I retry to delete the user then recreate user with simple password.

@peterkwc not sure if I understand. You deleted the user and created a new one with a simple password? What do you mean by simple? I don`t have a problem with regular passwords, its OTP that cause this. :)

You must append or prepend the otp token to the password of the user when testing, depending on the configuration.
Hardware:
DEC740

The most essential thing is in the name: TOTP = Time based One Time Password. If your system time is off, nothing works.
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 440 up, Bufferbloat A+

January 14, 2025, 08:20:05 PM #5 Last Edit: January 14, 2025, 08:25:44 PM by opnblue
Thanks you two.

@monviech

now I am even more confused :D it worked when testing with appending the OTP to the PW.
However I cannot login now regulary anymore with the same user, no matter if I try PW only or OTP+PW in the same field, or PW first (no error message) then OTP second (error: wrong password).

@meyergru how can I identify if the system time is on or off? I checked the timezone (correct) and there is a OPNsense time server selected under Network time. Do you mean time on BIOS level?
edit: I just ran an update and in the console view there it read the correct time.

Update: I think I 'solved' it now. Deleted the old users and created a new one, which seems to work now both in tester and real login.

Btw.. if some dev is reading this: please improve the UX of the OTP login flow. I would have never tried to fill-in OTP and PW in the same form field. At least explain it somewhere clearly, please.

Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)