Merge pull request #53 from henworth/patch-1

Update plugins/password/drivers/pam.php
pull/54/merge
Aleksander Machniak 12 years ago
commit 23b30e0afc

@ -13,7 +13,7 @@ class rcube_pam_password
{
$user = $_SESSION['username'];
if (extension_loaded('pam')) {
if (extension_loaded('pam') || extension_loaded('pam_auth')) {
if (pam_auth($user, $currpass, $error, false)) {
if (pam_chpass($user, $currpass, $newpass)) {
return PASSWORD_SUCCESS;

Loading…
Cancel
Save