Login failed when enabling TOTP One-Time Password

Turbovix a year ago

1 - I enabled TOTP One-Time Password
2 - I clicked to generate the key
3 - In Google Authenticator, I added a new one and added the key generated in Traccar.
4 - I closed the browser tab, cleared the cache and tried to log in. After entering the email and password, it asked for the TOTP code. So I entered the generated code in the Google Authenticator app, but the authentication failed.

Did I forget any details?

Is there a way to disable TOTP directly through the database? If so, in which table is it located.
I would appreciate any help in advance.

Turbovix a year ago

Guys, I managed to solve it.
It's in the "totpkey" field

Turbovix a year ago

However, I was wondering if I did something wrong to enable it. Another thing, is it necessary to enable and force it?

Anton Tananaev a year ago

It's not necessary to force it.

Turbovix a year ago

Anton, thanks for the feedback. Is the way I did it above correct? That is, I enable the feature, generate the key in Traccar and register this key in an app like Google Authenticator. Is that correct?

Anton Tananaev a year ago

Yes, that's correct.

Turbovix a year ago

Does the login fail, or is it necessary to restart the server?

Anton Tananaev a year ago

No restart required.

Turbovix a year ago

So I'll have to investigate, as the login keeps failing.