From 9298abc6e1d874549a7261e7fa0c224dd043c302 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 31 Dec 2009 19:13:51 +0000 Subject: [PATCH] mysql = default auth git-svn-id: http://www.observium.org/svn/observer/trunk@580 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/authenticate.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/authenticate.inc b/html/includes/authenticate.inc index d1fc4354d..cdf635761 100644 --- a/html/includes/authenticate.inc +++ b/html/includes/authenticate.inc @@ -28,7 +28,7 @@ if($_COOKIE['username'] && $_COOKIE['password']){ $auth_success = 0; -if ($config['auth_mechanism'] == "mysql") +if ($config['auth_mechanism'] == "mysql" || !$config['auth_mechanism']) { $encrypted = md5($_SESSION['password']); $sql = "SELECT username FROM `users` WHERE `username`='".$_SESSION['username']."' AND `password`='".$encrypted."'";