From 508f46c2afe62d37bc78456e9aa10f701500c549 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 9 Mar 2017 17:20:08 +0100 Subject: [PATCH] rename index.html -> index.html.tpl use var token instead of csrftoken. Signed-off-by: Dietmar Maurer --- Makefile | 4 ++-- index.html => index.html.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename index.html => index.html.tpl (97%) diff --git a/Makefile b/Makefile index 2aab89f..ee09a70 100644 --- a/Makefile +++ b/Makefile @@ -31,11 +31,11 @@ deb ${DEB}: js/pmgmanagerlib.js: make -C js pmgmanagerlib.js -install: index.html js/pmgmanagerlib.js +install: index.html.tpl js/pmgmanagerlib.js install -d -m 755 ${WWWCSSDIR} install -d -m 755 ${WWWIMAGESDIR} install -d -m 755 ${WWWJSDIR} - install -m 0644 index.html ${WWWBASEDIR} + install -m 0644 index.html.tpl ${WWWBASEDIR} install -m 0644 js/pmgmanagerlib.js ${WWWJSDIR} for i in ${IMAGES}; do install -m 0644 images/$$i ${WWWIMAGESDIR}; done for i in ${CSSFILES}; do install -m 0644 css/$$i ${WWWCSSDIR}; done diff --git a/index.html b/index.html.tpl similarity index 97% rename from index.html rename to index.html.tpl index 7e18a6a..c1a8755 100644 --- a/index.html +++ b/index.html.tpl @@ -24,7 +24,7 @@ Setup: { auth_cookie_name: 'PMGAuthCookie' }, NodeName: '[% nodename %]', UserName: '[% username %]', - CSRFPreventionToken: '[% csrftoken %]' + CSRFPreventionToken: '[% token %]' }; -- 2.39.2