]> git.proxmox.com Git - proxmox-backup.git/commit
ui: user edit: clean-up getValues function
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 Mar 2024 09:37:35 +0000 (10:37 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 Mar 2024 09:37:37 +0000 (10:37 +0100)
commitd9848071a066401f35968d2767b905f724b16248
tree79ee39faa7920d299c7392e0b69f2b8313faf063
parent5dc306fc985ff3ea12247c271f11df6587e8f87b
ui: user edit: clean-up getValues function

values.username just does not exist, and we do not need to delete the
username part anyway, as that field is used to assemble the full
userid by concatenating the name@realm parts.

While at it move this over to let-assignments and do not call setting
expiry explicitly a hack, it's fine and warranted code, because if one
wants to use a datefield's empty value as 0 one needs to do so
explicitly, nothing hacky there..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/window/UserEdit.js