Defaults for self registered users

Anders2 years ago

I wanted to change the default number of users and devices for self registered users. I saw this numbers had defaults set in the database so I changed them, restarted traccar registered a new user but there is no change in the settings. Is there another way to change this?
Regards
Anders

Anders2 years ago

I also found a setting for the traccar.xml but it did not change anything. did a restart

Anton Tananaev2 years ago

Maybe you can mention the configuration parameter that you're using?

Anders2 years ago

From dokumentation

<entry key='users.defaultDeviceLimit'>2</entry>
Anton Tananaev2 years ago

And you're saying it's not working for a user registered after that?

Anders2 years ago

Yes it comes up with 0 both in users and devices

Anton Tananaev2 years ago

Just tested and it's working perfectly for me.

Anders2 years ago

you can register a new user yourself and I will take a screenshot
track.havouza.com

Anton Tananaev2 years ago

Just create a user test@test.com. It has 2 devices limit as expected.

Anton Tananaev2 years ago

I recommend you to take your time and do a bit more testing before posting on the forum.

Anders Yuran2 years ago

I have tested back and forth but I realize that much of this comes from cache. I changed browser and now it seems that all the odd behaviours came from the browser cache, caused by too much testing.

Anton Tananaev2 years ago

Things like user attributes are never cached.