]> git.proxmox.com Git - pve-manager-legacy.git/commit
ui: dc/TokenEdit: fix editing existing tokens
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 12 Feb 2021 15:01:15 +0000 (16:01 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 Feb 2021 15:37:51 +0000 (16:37 +0100)
commit3f5a55f2e97b45aae7eb6d1be4240339092f79d2
tree8e1964008edc8a5e437ad9c4201a38e03b4b7cf5
parent7643233b02b9736f9d9e468d47b0fa2f4a8beb9e
ui: dc/TokenEdit: fix editing existing tokens

we always have to calculate the url correctly, not only on creation
otherwise we try to edit the token by doing a 'PUT' request on
/access/users
and not on
/access/users/USERID/token/TOKENID

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/dc/TokenEdit.js