CPanel - Change email password without logging into Cpanel

Posted by keith70, 03-14-2007, 12:48 PM
Is there a script out there that will allow a user to change their password without logging into CPanel at all? Like a reset password script for cpanel?

Posted by sscon, 03-15-2007, 03:06 PM
Very sloppy as I am at work, but should give you an idea -

Posted by host-addiction, 03-15-2007, 03:26 PM
That should work, seen i code php scripts for cpanels,

Posted by keith70, 03-15-2007, 05:04 PM
Is there any security related issues with the above way of doing it? Thanks guys for your input!!!

Posted by brendandonhu, 03-17-2007, 03:42 PM
For security you might want to connect using SSL but other than that it should be fine. I wrote a class that can do this kind of thing: http://www.phpclasses.org/browse/package/3534.html

Posted by keith70, 03-18-2007, 08:36 PM
I downloaded that class and example. It worked! Now can you give me an example in php script that would just allow the user to change their passsword? Sorry, new to all this, but you guys are very helpful!

Posted by brendandonhu, 03-18-2007, 10:59 PM
You can make an HTML form where the user enters their name and old and new passwords, then write a script to login to the account and change it. Is there a certain part you're getting stuck on?

Posted by keith70, 03-19-2007, 08:13 AM
I can do the form and pass that information to the script. But I need the example of the PHP script that uses your class to actually change the password for the account.

Posted by IsMyLittleName, 03-19-2007, 09:12 AM
thanks this should help me a little with my site

Posted by brendandonhu, 03-20-2007, 07:01 PM
To change the password you do new cPanel() to login (see the example file for the parameters), and then $cPanel->setPassword('password').

Was this answer helpful?

 Print this Article

Also Read

SNMP Monitoring

Posted by g3tech, 08-27-2003, 10:23 PMHello, Was just wondering what you guys out there use to...

PHP Foreach Loop Issue...

Posted by Calibur747, 02-12-2011, 05:09 PMHello WHT, I am having an issue where some users are...

MySQL error code: 2006

Posted by Glostar, 04-18-2009, 03:54 AMI update MySQL from version 4 to 5.0.67-community. Now, I...

Has anyone Xperience with BOTH MCHost and Voxtreme?

Posted by cyberdao, 07-20-2002, 10:26 PMHas anyone (had) accounts with both MCHost and Voxtreme?...

SMS based call-to-action

Posted by Jatinder, 02-15-2011, 11:00 AMHello, I am looking for India based SMS gateway which...