No description
Find a file
Shannon Sterz fc2c392666 user panel: handle expire property on edit properly
setting expire to "0" is a special case meaning "never expires". while
this was honored in the user management overview, the edit panel
rendered this as 01.01.1970 00:00:00 UTC, or the Unix epoch. this had
minimal functional impact, but it may be confusing to users. set
expire to `Value::Null` in this special case, rendering a cleared date
picker.

also the expire field is typically an `Option<i64>` [1]. so instead of
interpreting it as a `f64` and then casting it back to an `i64` when
rendering the input date, interpret it as an `i64` straight away.

[1]: https://git.proxmox.com/?p=proxmox.git;a=blob;f=proxmox-access-control/src/types.rs;h=78eafb4c9d1e;hb=HEAD#l218

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
Link: https://lore.proxmox.com/20260325121516.164312-1-s.sterz@proxmox.com
2026-03-26 23:18:47 +01:00
.cargo rename .cargo/config to .cargo/config.toml 2024-08-12 11:02:29 +02:00
debian bump version to 0.8.4 2026-03-09 22:28:01 +01:00
src user panel: handle expire property on edit properly 2026-03-26 23:18:47 +01:00
.gitignore add a .gitignore file 2024-06-14 11:58:09 +02:00
Cargo.toml bump version to 0.8.4 2026-03-09 22:28:01 +01:00
js-helper-module.js remove old rrd uplot code 2025-08-14 11:00:51 +02:00
Makefile make: fix build targets 2025-10-17 00:47:15 +02:00
TODO.md TODO: add todo list 2023-10-04 07:05:39 +02:00