diff options
author | sullrich <sullrich@pfsense.org> | 2009-11-27 20:13:17 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-11-27 20:13:17 -0500 |
commit | 772d3121333349d01e193afbc746026ac3387b8e (patch) | |
tree | 3b292425806f9ba59e125572df18df22f4c8ba22 /etc/inc | |
parent | d2aa8cd682a6db5a4d081ea39ff430df8715e9a0 (diff) | |
download | pfsense-772d3121333349d01e193afbc746026ac3387b8e.zip pfsense-772d3121333349d01e193afbc746026ac3387b8e.tar.gz |
Use ['name'] when looking up items
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/auth.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index a395a91..2ae160e 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -840,7 +840,7 @@ function radius_backed($username, $passwd){ function get_user_expiration_date($username) { global $config; foreach($config['system']['user'] as $user) { - if($user == $username) { + if($user['name'] == $username) { if($user['expires']) return $user['expires']; } @@ -849,8 +849,8 @@ function get_user_expiration_date($username) { function is_account_disabled($username) { global $config; - foreach($config['system']['user'] as $user) - if($user == $username) + foreach($config['system']['user'] as $user) + if($user['name'] == $username) if(isset($user['disabled'])) return true; return false; |