aboutsummaryrefslogtreecommitdiffstats
path: root/packages/autoconfigbackup/autoconfigbackup.php
diff options
context:
space:
mode:
Diffstat (limited to 'packages/autoconfigbackup/autoconfigbackup.php')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php
index 2574941a..1162bdb0 100644
--- a/packages/autoconfigbackup/autoconfigbackup.php
+++ b/packages/autoconfigbackup/autoconfigbackup.php
@@ -42,6 +42,14 @@ $get_url = "https://portal.pfsense.org/pfSconfigbackups/restore.php";
// Encryption password
$decrypt_password = $config['installedpackages']['autoconfigbackup']['config']['decrypt_password'];
+$username = $config['installedpackages']['autoconfigbackup']['config']['username'];
+$password = $config['installedpackages']['autoconfigbackup']['config']['password'];
+
+if(!$username) {
+ Header("Location: /pkg_edit.php?xml=autoconfigbackup.xml&id=0");
+ exit;
+}
+
if($_GET['newver'] != "") {
// Phone home and obtain backups
$curl_Session = curl_init($get_url);