server icon indicating copy to clipboard operation
server copied to clipboard

`Date Locale` are not saved after being deauthenticated automatically

Open kalidor opened this issue 4 months ago • 1 comments

Have you read the documentation?

  • [x] Yes, but it does not include related information regarding my question.

You are setting up traggo in

  • [x] Docker
  • ~[ ] Linux native platform~
  • ~[ ] Windows native platform~

Describe your problem I don't want to open an issue for a bug for no reason. So here are the question.

Get authenticate (without checking Remeber Me box) and go to User / Settings and change default locale to German. Web page asks to reload the page to apply this change, I do. I go back to Timesheet / List.

After a while, I end up unauthenticated, and when i re-authenticate again, the DateLocale is back on American. Is that supposed to be the expected behavior ?

Is the configuration not supposed to be saved at some point (cookie or else) ?

Any errors, logs, or other information that might help us identify your problem

docker-compose.yml:

version: "3.7"
services:
  traggo:
    image: traggo/server:latest
    ports:
      - 3030:3030
    environment:
      TRAGGO_DEFAULT_USER_NAME: REDACTED
      TRAGGO_DEFAULT_USER_PASS: REDACTED
    volumes:
      - ./traggodata:/opt/traggo/data

kalidor avatar Sep 16 '25 12:09 kalidor

After login you can do another refresh, then the locale will be loaded correctly. It seems like the settings aren't refetched after the login is done even if it's defined https://github.com/traggo/server/blob/52c28e6b2955aec90df767353e77e2a29a192246/ui/src/login/LoginForm.tsx#L27

jmattheis avatar Sep 19 '25 11:09 jmattheis