Email authentication for password change
[PHP]set_port(2083);
$xmlapi->password_auth("peen", "myPassword");
// Change password!
if ($xmlapi->api2_query("peen", "Email", "passwdpop", array( 'domain' => "mydomain.com", 'email' => "peen", 'password' => "NewPassword") ))
echo "Success!";
?>[/PHP]
I have a similar code that works for changing the password for an email account.
I wanna protect it with the same Email Authentication. The above process resets the password of peen@mydomain.com to NewPassword. This is working great! What I wanna do is, I should have a form, that authenticates the user based on their email address and their old password.
I checked with the
Please sign in to leave a comment.
Comments
1 comment