From 594346d26256b50609e6bbc614165e6c77ca9991 Mon Sep 17 00:00:00 2001 From: flashwave Date: Tue, 11 Dec 2018 21:20:11 +0100 Subject: [PATCH] Actually store updated CSRF token. --- assets/typescript/FormUtilities.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/typescript/FormUtilities.ts b/assets/typescript/FormUtilities.ts index 755130fd..0db71bfa 100644 --- a/assets/typescript/FormUtilities.ts +++ b/assets/typescript/FormUtilities.ts @@ -104,6 +104,8 @@ function updateCSRF(token: string, realm: string = null, name: string = 'csrf'): } } + setCSRF(realm, token); + const elements: NodeListOf = document.getElementsByName(`${name}[${realm}]`) as NodeListOf; for (let i = 0; i < elements.length; i++) {