Author Topic: Recover Administrator Password  (Read 2130 times)

Pavel

  • Posts: 14
    • View Profile
Recover Administrator Password
« on: June 28, 2004, 09:07:06 am »
Hello,
Could you tell me how can I retrieve my admin password?

I did not remember changing it, but I cannot login now. ListMail reports “Incorrect password”.
Pavel Lenshin
NeoProfit Circle

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Recover Administrator Password
« Reply #1 on: June 28, 2004, 03:57:16 pm »
Currently this is possible via PhpMyAdmin, likely accessible from your control panel.

Click on the "lm_config" table and hit "Browse", then look at the value in the "admpw" field.

Another way would be by copying the following code into a file in your ListMail directory, ie "recover_password.php":

Code: [Select]
<?php// show admin password from ListMail$listmail_dir = ".";include($listmail_dir."/config.php");include($listmail_dir."/admin.php");$link = mysql_connect($sqlhost, $sqluser, $sqlpass) or die("Can't connect to MySQL");mysql_selectdb($sqldb) or die("Can't select database, does it exist?");echo "retrieving password.. ";$row = mysql_query("select admpw from $ctable where 1");if(mysql_num_rows($row)>0){	list($pw)=mysql_fetch_row($row);	echo "  your password is <b>$pw</b><br>";} else {	echo "<b>  could not read config!</b><br>";}?>


Upload it to your main ListMail folder and browse to it, you should be shown your password.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

Pavel

  • Posts: 14
    • View Profile
Recover Administrator Password
« Reply #2 on: June 29, 2004, 01:12:43 am »
Success!

Thanks Dean, Ive used first method and everything went smooth.

Please include your piece of code to the new addition of ListMail as a small secret utility for all admins to use if they lost their passwords.
Pavel Lenshin
NeoProfit Circle