summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-11-27 20:13:17 -0500
committersullrich <sullrich@pfsense.org>2009-11-27 20:13:17 -0500
commit772d3121333349d01e193afbc746026ac3387b8e (patch)
tree3b292425806f9ba59e125572df18df22f4c8ba22 /etc/inc
parentd2aa8cd682a6db5a4d081ea39ff430df8715e9a0 (diff)
downloadpfsense-772d3121333349d01e193afbc746026ac3387b8e.zip
pfsense-772d3121333349d01e193afbc746026ac3387b8e.tar.gz
Use ['name'] when looking up items
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/auth.inc6
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;
OpenPOWER on IntegriCloud