scottlamb / moonfire-nvr

Moonfire NVR, a security camera network video recorder
Other
1.25k stars 138 forks source link

`user_session` table never gets `use_count` and `last_use_time_sec` updates #282

Closed scottlamb closed 1 year ago

scottlamb commented 1 year ago

Describe the bug In the user_session table of the database, use_count is always 0 and last_use_time_sec is always null.

To Reproduce Steps to reproduce the behavior:

  1. Enable auth
  2. Sign in / use a session
  3. Wait for flush

Expected behavior This should return non-zero:

select count(*) from user_session where use_count > 0 or last_use_time_sec is not null;

Server (please complete the following information): current HEAD

Camera (please complete the following information): n/a

Desktop (please complete the following information): n/a

Smartphone (please complete the following information): n/a

Additional context As noted by @ldfsilva in https://github.com/scottlamb/moonfire-nvr/issues/277#issuecomment-1619042728.