summaryrefslogtreecommitdiffstats
path: root/lib/class/auth.class.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-01-28 17:48:00 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-01-28 21:23:14 -0500
commita6b70f9eba2bc4482ce1d432ae248663455a6a27 (patch)
treefe3e3c3c64c39e462000464f7c4b725f8ae5468a /lib/class/auth.class.php
parentead4cf2a0e9d41b5874dfcb6c753b18ed675cc0c (diff)
downloadampache-a6b70f9eba2bc4482ce1d432ae248663455a6a27.tar.gz
ampache-a6b70f9eba2bc4482ce1d432ae248663455a6a27.tar.bz2
ampache-a6b70f9eba2bc4482ce1d432ae248663455a6a27.zip
Rename the 'local' auth method to 'pam'
It's what it should have been from the start.
Diffstat (limited to 'lib/class/auth.class.php')
-rw-r--r--lib/class/auth.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/class/auth.class.php b/lib/class/auth.class.php
index 8d231f0a..a59e2ad4 100644
--- a/lib/class/auth.class.php
+++ b/lib/class/auth.class.php
@@ -160,11 +160,11 @@ class Auth {
}
/**
- * local_auth
+ * pam_auth
* Check to make sure the pam_auth function is implemented (module is
* installed), then check the credentials.
*/
- private static function local_auth($username, $password) {
+ private static function pam_auth($username, $password) {
if (!function_exists('pam_auth')) {
$results['success'] = false;
$results['error'] = 'The PAM PHP module is not installed';
@@ -175,7 +175,7 @@ class Auth {
if (pam_auth($username, $password)) {
$results['success'] = true;
- $results['type'] = 'local';
+ $results['type'] = 'pam';
$results['username'] = $username;
}
else {