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').

Bu mövzu kifayət qədər köməkçi oldu mu?

 Çap

Digər Başlıqlar

How is freestylehosting.com?

Posted by Shazan, 08-30-2002, 06:13 AMHello everyone! I'd like to know if freestylehosting.com...

Installing Glassfish Application Server ?

Posted by john551, 09-16-2008, 10:54 AMHello Friends, How to install Glassfish Application...

Cpanel official API? ( PHP )

Posted by stormridermay, 01-08-2008, 08:39 PMHello, I'm writing my own billing/hosting system....

2 questions about setting up domain registry on my site!

Posted by 21inchguns, 09-13-2001, 09:32 AMHi there, I just have two questions regarding setting...

php help

Posted by BattleMasterGaara, 02-06-2011, 10:44 PMWhat code do i use just to switch the content of...