PHP/PAM to change user password?

前端 未结 5 1226
被撕碎了的回忆
被撕碎了的回忆 2021-02-10 02:16

Are there any working packages to change a linux user passwords using PHP?

I\'ve tried using PECL:PAM but theres an error when it tries to change the password.

E

5条回答
  •  暖寄归人
    2021-02-10 03:10

    After hours of research online, I wasn't able to find a super good option so I'm implemented this hack. It uses this article for changing passwords using PHP.

    I'm also using the PECL:PAM package to add a little verification.

    This page is on a secure HTTPS folder (automatic redirect via .htaccess)

    
    
    
    
    Passwords
    
    
    
    
    
    
    
    
    

    Change Passwords





    I also have this question/answer posted in https://serverfault.com/questions/150306/how-to-let-users-change-linux-password-from-web-browser/152409#152409

提交回复
热议问题