mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
mysql = default auth
git-svn-id: http://www.observium.org/svn/observer/trunk@580 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -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."'";
|
||||
|
Reference in New Issue
Block a user