summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-09-28 23:48:07 +0000
committerErmal <eri@pfsense.org>2011-09-28 23:48:32 +0000
commitb3c106a0066554ca8721ef9ce67c957d74de6a87 (patch)
tree41852d0d28e46ab31bdafbd4c9ef6df577fd415c /etc/inc/auth.inc
parentaa690c34f27d30ad6537b37284eaaf7b7121b2bf (diff)
downloadpfsense-b3c106a0066554ca8721ef9ce67c957d74de6a87.zip
pfsense-b3c106a0066554ca8721ef9ce67c957d74de6a87.tar.gz
Check that we have user password otherwise strange things happen if tehre is nothing stored in the config
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index bf2db0c..360a1af 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -359,6 +359,11 @@ function local_sync_accounts() {
function local_user_set(& $user) {
global $g, $debug;
+ if (empty($user['password'])) {
+ log_error("There is something wrong in your config because user {$user['name']} password is missing!");
+ return;
+ }
+
conf_mount_rw();
$home_base = "/home/";
OpenPOWER on IntegriCloud