diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-02-09 08:06:24 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-02-09 08:06:24 -0500 |
commit | 85c721a3e2903fc1d32745bd5aaaab4b99acd4d6 (patch) | |
tree | 4f6d3f11f556a721aaf478e5d65fc94b0d7f3406 /src | |
parent | a0f8589a3b730c9b1639f995c3a1c8e8e2ca0460 (diff) | |
parent | b7369ff88e2e75f81cba070e0bb52b3e780a4f6c (diff) | |
download | pfsense-85c721a3e2903fc1d32745bd5aaaab4b99acd4d6.zip pfsense-85c721a3e2903fc1d32745bd5aaaab4b99acd4d6.tar.gz |
Merge pull request #2604 from NewEraCracker/illegal-offset-fix
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/auth.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index 4899e4a..a5f0ff4 100644 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -1530,6 +1530,10 @@ function getUserGroups($username, $authcfg, &$attributes = array()) { function authenticate_user($username, $password, $authcfg = NULL, &$attributes = array()) { + if (is_array($username) || is_array($password)) { + return false; + } + if (!$authcfg) { return local_backed($username, $password); } |