From 60253d2aeb7dbd65be06e9e708879c9334d665f9 Mon Sep 17 00:00:00 2001 From: willipink Date: Mon, 1 Nov 2021 14:20:48 +0000 Subject: [PATCH] revert remove csrf token, get add/coin working again - refactored due to testing ... --- coinmanager/coinc/static/coinc/main.js | 2 +- .../coinc/templates/registration/login.html | 1 + coinmanager/db.sqlite3 | Bin 1314816 -> 1314816 bytes 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/coinmanager/coinc/static/coinc/main.js b/coinmanager/coinc/static/coinc/main.js index b0336c2..aa0a603 100644 --- a/coinmanager/coinc/static/coinc/main.js +++ b/coinmanager/coinc/static/coinc/main.js @@ -340,7 +340,7 @@ $(document).ready(function() { $.ajax({ type: 'POST', - url: 'add/coin', + url: 'add/coin/' + String(country) + '/' + String(year) + '/' + String(value), data: data, dataType: 'json', td: td, diff --git a/coinmanager/coinc/templates/registration/login.html b/coinmanager/coinc/templates/registration/login.html index 0c937cc..b5a42c8 100644 --- a/coinmanager/coinc/templates/registration/login.html +++ b/coinmanager/coinc/templates/registration/login.html @@ -21,6 +21,7 @@