How to enable totp

Mathieu 10 months 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 Tananaev 10 months ago

What version?

Mathieu 10 months ago

6.9.1

Anton Tananaev 10 months ago

What do you see on the register and login screens?

Mathieu 10 months 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 Tananaev 10 months ago

The QR code is completely unrelated.

Where is the registration screen?

Mathieu 10 months 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 Tananaev 10 months ago

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

Mathieu 10 months 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 Tananaev 10 months ago

You can always disable it once you register your user.

Mathieu 10 months ago

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

Anton Tananaev 10 months ago

It will be there.

Mathieu 10 months 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 Tananaev 10 months ago

It means you have not enabled TOTP.

Anton Tananaev 10 months 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?