diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-04-17 23:51:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-04-17 23:51:35 +0000 |
commit | 95c99f1d91f168d9560d8352c2dd4eb8b12311ce (patch) | |
tree | cf58ccddc0630b0776495ced8c3cdb786de09ecc /packages | |
parent | 8304547b4b04bcfb245193f500a2a4f5b5f64626 (diff) | |
download | pfsense-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.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/spamd.inc | 5 |
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"; } } } |