summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 5b62e6a..1c176ab 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -1304,7 +1304,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'])) {
@@ -1412,4 +1412,4 @@ function session_auth() {
Header("X-Frame-Options: SAMEORIGIN");
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud