Restore Admin User

DeZ8 years ago

Hello

I have a problem with my admin user.

I change it to no admin user i don't be able to rollback.

I have only 1 user

I try to change in database but it's not working

UPDATE traccar.users SET readonly=b'0', admin=b'1', devicereadonly=b'0' WHERE id=1;

Can you give the sql to restore admin user ?

Thanks

Anton Tananaev8 years ago

Have you restarted service after running that query?

DeZ8 years ago

Hello, after restarting service it's working

Thanks

Anton Tananaev8 years ago

Have you checked logs?

DeZ8 years ago

No all working good and my admin account is restored

What is expected in log ?

Thanks

Anton Tananaev8 years ago

Sorry, I misread. I thought it doesn't work.