How to enable totp

Mathieu5 days ago

Hi,
I've read the documentation about totpenable, totpforce within the traccar xml file. I've enabled both but it seems that i can't find the option or it doesn't seems activated.
I rebooted the server few times, created new users, but yet, i might be missing something.

Any help would be gladly appreciated!

Thanks! :)

Anton Tananaev5 days ago

What version?

Mathieu5 days ago

6.9.1

Anton Tananaev5 days ago

What do you see on the register and login screens?

Mathieu5 days ago

I see this :
Screenshot 2025-09-01 005007.png

But when i scan the QR code with my authenticator, it says : This QR code is not supported Error code : 400.004.575

I didn't see the QR code icon before, i was expecting something to appear under the login boxes. My bad.

Anton Tananaev5 days ago

The QR code is completely unrelated.

Where is the registration screen?

Mathieu5 days ago

Ok, i didn't know.

That's the point of this post, i can't see it.
Screenshot 2025-09-01 005825.png
I added both lines within the configuration file, and according to previous posts about the subject, i should be getting more information at the login prompt, which, i don't have.

Anton Tananaev5 days ago

But you said you created new users? For TOTP to work you need to enable self-registration.

Mathieu5 days ago

Well, maybe it seems unclear from my part, but i wanted to enable the totp as a part of a 2fa authentication for more security before exposing this service permanently on the internet.

I don't want anybody to self register themselves as i want to track 3-4 mobile devices for personal usage.

Am i looking for the right thing? Maybe i am not ...

Anton Tananaev5 days ago

You can always disable it once you register your user.

Mathieu5 days ago

Ok but i was looking for the authenticator part, that's not it?

Anton Tananaev4 days ago

It will be there.

Mathieu4 days ago

Ok so i clicked on register, entered a new user name, email, password.
It says new user has been registered
I go back to sign in, i put the email, password and login
No totp asked.

Am i missing something?
Screenshot 2025-09-01 121441.png

Anton Tananaev4 days ago

It means you have not enabled TOTP.

Anton Tananaev4 days ago

Wait. I realized that you didn't configure it correctly. Why are you adding it to the config file when the documentation clearly says it should in the server settings?