Login failed when enabling TOTP One-Time Password

Turbovix3 months 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.

Turbovix3 months ago

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

Turbovix3 months ago

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

Anton Tananaev3 months ago

It's not necessary to force it.

Turbovix3 months 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 Tananaev3 months ago

Yes, that's correct.

Turbovix3 months ago

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

Anton Tananaev3 months ago

No restart required.

Turbovix3 months ago

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