From a2834cb5d4e57cc4b9d2649fb13cef2e9c797523 Mon Sep 17 00:00:00 2001 From: ralf Date: Mon, 15 Jan 2024 10:07:39 +0200 Subject: [PATCH] load login.js incl. cache-buster via Framework --- api/src/Framework/Login.php | 2 ++ api/templates/default/login.tpl | 3 +-- pixelegg/login.tpl | 5 +---- pixelegg/login_mobile.tpl | 5 +---- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/api/src/Framework/Login.php b/api/src/Framework/Login.php index d4c3c08dd0..d65db10798 100644 --- a/api/src/Framework/Login.php +++ b/api/src/Framework/Login.php @@ -50,6 +50,8 @@ class Login Api\Header\ContentSecurityPolicy::add('frame-src', 'none'); Api\Header\ContentSecurityPolicy::add('media-src', 'none'); + Api\Framework::includeJS('/api/js/login.js?'.filemtime(EGW_SERVER_ROOT.'/api/js/login.js')); + //error_log(__METHOD__."() this->template=$this->framework->template, this->template_dir=$this->framework->template_dir, get_class(this)=".get_class($this)); try { $tmpl = new Template(EGW_SERVER_ROOT.$this->framework->template_dir); diff --git a/api/templates/default/login.tpl b/api/templates/default/login.tpl index dccd928a69..fd6e10097c 100644 --- a/api/templates/default/login.tpl +++ b/api/templates/default/login.tpl @@ -1,4 +1,3 @@ -
@@ -94,4 +93,4 @@
-
+ \ No newline at end of file diff --git a/pixelegg/login.tpl b/pixelegg/login.tpl index a0cafd59ea..217969c26c 100644 --- a/pixelegg/login.tpl +++ b/pixelegg/login.tpl @@ -1,6 +1,3 @@ - - -
{cd} @@ -122,4 +119,4 @@
-
+ \ No newline at end of file diff --git a/pixelegg/login_mobile.tpl b/pixelegg/login_mobile.tpl index d47dc07cd4..c7c8d9be5f 100644 --- a/pixelegg/login_mobile.tpl +++ b/pixelegg/login_mobile.tpl @@ -1,6 +1,3 @@ - - -
{cd} @@ -121,4 +118,4 @@ -
+
\ No newline at end of file