ui: show external access warning (#15017)

* ui: show external access warning

* force browser cache reload by changing the custom.js link

* Update wording on warning

Co-authored-by: garfield69 <garfield69@outlook.com>

---------

Co-authored-by: garfield69 <garfield69@outlook.com>
This commit is contained in:
Bogdan
2024-01-26 08:55:13 +02:00
committed by GitHub
parent b71e780584
commit 492a6962f1
2 changed files with 9 additions and 1 deletions

View File

@@ -147,6 +147,10 @@ function loadJackettSettings() {
$("#can-upgrade-from-mono").show();
}
if (data.external != null && data.external === true && data.password === '') {
$("#warning-external-access").show();
}
$.each(data.notices, function (index, value) {
console.log(value);
doNotify(value, "danger", "glyphicon glyphicon-alert", false);

View File

@@ -50,6 +50,10 @@
</div>
<hr />
<div id="warning-external-access" hidden class="alert alert-danger text-center" role="alert">
<strong><span class="glyphicon glyphicon-alert"></span>Security Risk: Your instance has external access enabled without using an admin password.<span class="glyphicon glyphicon-alert"></span></strong>
</div>
<div id="can-upgrade-from-mono" hidden class="alert alert-info" role="alert">
<strong>Standalone version of Jackett is now available - Mono not required</strong> <br>
To upgrade to the standalone version of Jackett, <a href="https://github.com/Jackett/Jackett#install-on-linux-amdx64" target="_blank" class="alert-link">click here</a> for install instructions.
@@ -760,6 +764,6 @@
</script>
<script type="text/javascript" src="../libs/api.js?changed=2017083001"></script>
<script type="text/javascript" src="../custom.js?changed=2023071401"></script>
<script type="text/javascript" src="../custom.js?changed=20240126v1"></script>
</body>
</html>