1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 19:41:55 +02:00

Rename the 'local' auth method to 'pam'

It's what it should have been from the start.
This commit is contained in:
Paul Arthur 2013-01-28 17:48:00 -05:00
parent ead4cf2a0e
commit a6b70f9eba
3 changed files with 18 additions and 5 deletions

View file

@ -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 {