summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-05-30 20:50:30 +0000
committerErmal <eri@pfsense.org>2012-05-30 20:50:30 +0000
commitd427980c76cd11beeb923c939e1924fecf532a08 (patch)
tree5399030dbe31e9ba3514ee487281021513816b65 /etc
parenta50115856994b73b11ac04e1f8d790d2741238f7 (diff)
downloadpfsense-d427980c76cd11beeb923c939e1924fecf532a08.zip
pfsense-d427980c76cd11beeb923c939e1924fecf532a08.tar.gz
Do not allow empty passwords since this might cause problems for some authentication servers like ldap. Fixes #2326
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 26f0497..29a698c 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -1276,7 +1276,7 @@ function session_auth() {
session_start();
/* Validate incoming login request */
- if (isset($_POST['login'])) {
+ if (isset($_POST['login']) && !empty($_POST['usernamefld']) && !empty($_POST['passwordfld'])) {
$authcfg = auth_get_authserver($config['system']['webgui']['authmode']);
if (authenticate_user($_POST['usernamefld'], $_POST['passwordfld'], $authcfg) ||
authenticate_user($_POST['usernamefld'], $_POST['passwordfld'])) {
OpenPOWER on IntegriCloud