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:
parent
ead4cf2a0e
commit
a6b70f9eba
3 changed files with 18 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue