diff options
-rw-r--r-- | config/ampache.cfg.php.dist | 2 | ||||
-rw-r--r-- | lib/class/vauth.class.php | 16 |
2 files changed, 1 insertions, 17 deletions
diff --git a/config/ampache.cfg.php.dist b/config/ampache.cfg.php.dist index 1d0339f0..424c9907 100644 --- a/config/ampache.cfg.php.dist +++ b/config/ampache.cfg.php.dist @@ -82,7 +82,7 @@ session_cookiesecure = 0 ; to use and in which order, if auto_create isn't enabled ; The user must exist locally. Local method uses PHP's PAM Auth module ; DEFAULT: mysql -; VALUES: mysql,ldap,http,local,null +; VALUES: mysql,ldap,http,local auth_methods = "mysql" ; Logout redirection target diff --git a/lib/class/vauth.class.php b/lib/class/vauth.class.php index b4a4b77e..4364d75e 100644 --- a/lib/class/vauth.class.php +++ b/lib/class/vauth.class.php @@ -695,22 +695,6 @@ class vauth { return $results; } // http_auth - /** - * null_auth - * This is the equivalent of the old http_auth and assumes that if you - * can access the page, you're a trusted user. - * This is not a very secure method of authentication, since it allows - * you to log in with an arbitrary username. - */ - private static function null_auth($username) { - $results['success'] = true; - $results['type'] = 'null'; - $results['username'] = $username; - $results['name'] = $username; - $results['email'] = ''; - return $results; - } // null_auth - } // end of vauth class ?> |