]> git.proxmox.com Git - pmg-api.git/commit
improve csrf backward compatibility
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 16 Aug 2019 14:02:23 +0000 (16:02 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 16 Aug 2019 15:20:36 +0000 (17:20 +0200)
commit7aff29f38091462a13431ec80f6cbdd8e93e2c4b
tree0207447939d3501abacb0ecde4c13b4980b66f3d
parenta730a4fd5d5928359c62e0c20e94ffb8ff55a6db
improve csrf backward compatibility

this patch follows the code in pve-access-control
e149b1c6c9954c07672d63f23f696d5b1e6c11d4)

and should enable us to update pve-common in PMG 5.x along with PVE again.

Tested by:
* logging into PMG (get csrf token)
a) installing only the previous patch:
   * POSTing (with the previously obtained token) -> 401
b) installing previous and this patch
   * POSTing (with the previously obtained token) -> 200

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/Ticket.pm