PHP/PAM to change user password?

前端 未结 5 1045
广开言路
广开言路 2021-02-10 02:38

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:18

    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

提交回复
热议问题