summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-03-14 03:43:06 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-03-14 03:43:06 +0000
commit5744c3ea4b476f7cdc8bad113432673e88f884d9 (patch)
tree7501c6227e88729d03e1e5bbde68b6badc2c10aa
parent9a872491dd3d5846b772bdf2dc93873b7e8a688a (diff)
downloadampache-5744c3ea4b476f7cdc8bad113432673e88f884d9.tar.gz
ampache-5744c3ea4b476f7cdc8bad113432673e88f884d9.tar.bz2
ampache-5744c3ea4b476f7cdc8bad113432673e88f884d9.zip
Remove null auth method.
-rw-r--r--config/ampache.cfg.php.dist2
-rw-r--r--lib/class/vauth.class.php16
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
?>