mysql = default auth

git-svn-id: http://www.observium.org/svn/observer/trunk@580 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-12-31 19:13:51 +00:00
parent 3d94b6056c
commit 9298abc6e1

View File

@@ -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."'";