diff options
author | Ermal <eri@pfsense.org> | 2011-09-28 23:48:07 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-09-28 23:48:07 +0000 |
commit | b015aa8cd96ee8acd1b9a6fd9d828dc190a5dd0f (patch) | |
tree | a267cad902cbeb56ff84fe1b4ac23df16bfb1f1b /etc/inc | |
parent | fe032a7e5076f1d35b2b8512b3fb7205746fd677 (diff) | |
download | pfsense-b015aa8cd96ee8acd1b9a6fd9d828dc190a5dd0f.zip pfsense-b015aa8cd96ee8acd1b9a6fd9d828dc190a5dd0f.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')
-rw-r--r-- | etc/inc/auth.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index d5d8daf..613bd9f 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -342,6 +342,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/"; |