aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-04-17 23:51:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-04-17 23:51:35 +0000
commit95c99f1d91f168d9560d8352c2dd4eb8b12311ce (patch)
treecf58ccddc0630b0776495ced8c3cdb786de09ecc
parent8304547b4b04bcfb245193f500a2a4f5b5f64626 (diff)
downloadpfsense-packages-95c99f1d91f168d9560d8352c2dd4eb8b12311ce.tar.gz
pfsense-packages-95c99f1d91f168d9560d8352c2dd4eb8b12311ce.tar.bz2
pfsense-packages-95c99f1d91f168d9560d8352c2dd4eb8b12311ce.zip
Use defined system username and fall back to admin for config sync.
-rw-r--r--packages/spamd.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/spamd.inc b/packages/spamd.inc
index 0a17bb72..c6846507 100644
--- a/packages/spamd.inc
+++ b/packages/spamd.inc
@@ -152,7 +152,10 @@ function sync_spamd_config_to_backup() {
if($carp['synchronizetoip'] != "" ) {
$synctoip = $carp['synchronizetoip'];
$password = $carp['password'];
- $username = "admin";
+ if($config['system']['username'])
+ $username = $config['system']['username'];
+ else
+ $username = "admin";
}
}
}