summaryrefslogtreecommitdiffstats
path: root/lib/class/vauth.class.php
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2009-10-08 18:37:17 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2009-10-08 18:37:17 +0000
commit317b9dd9c41d0a855b4d0438f4deac7becc01f04 (patch)
tree86b254be53b8edae16756871d7a4828d0fb715f9 /lib/class/vauth.class.php
parent4fec0e6127023d064bed2117effe3de00c3a5210 (diff)
downloadampache-317b9dd9c41d0a855b4d0438f4deac7becc01f04.tar.gz
ampache-317b9dd9c41d0a855b4d0438f4deac7becc01f04.tar.bz2
ampache-317b9dd9c41d0a855b4d0438f4deac7becc01f04.zip
Remove auth_http-specific autocreation of nonexistent users now that this is handled generically
by login.php
Diffstat (limited to 'lib/class/vauth.class.php')
-rw-r--r--lib/class/vauth.class.php25
1 files changed, 4 insertions, 21 deletions
diff --git a/lib/class/vauth.class.php b/lib/class/vauth.class.php
index f9e614f9..300426f8 100644
--- a/lib/class/vauth.class.php
+++ b/lib/class/vauth.class.php
@@ -648,32 +648,15 @@ class vauth {
* http_auth
* This auth method relies on HTTP auth from Apache
* This is not a very secure method of authentication
- * defaulted to off. Because if they can load the page they
- * are considered to be authenticated we need to look and
- * see if their user exists and if not, by golly we just
- * go ahead and created it. NOT SECURE!!!!!
+ * and defaults to off.
*/
public static function http_auth($username) {
- /* Check if the user exists */
- if ($user = User::get_from_username($username)) {
- $results['success'] = true;
- $results['type'] = 'mysql';
- $results['username'] = $username;
- $results['name'] = $user->fullname;
- $results['email'] = $user->email;
- return $results;
- }
-
- /* If not then we auto-create the entry as a user.. :S */
- $user_id = $user->create($username,$username,'',md5(rand()),'25');
- $user = new User($user_id);
-
$results['success'] = true;
- $results['type'] = 'mysql';
+ $results['type'] = 'http';
$results['username'] = $username;
- $results['name'] = $user->fullname;
- $results['email'] = $user->email;
+ $results['name'] = $username;
+ $results['email'] = '';
return $results;
} // http_auth