User's can't reset passwords

Please report bugs here!

Moderator: Thorsten

Post Reply
kballard
Posts: 35
Joined: Fri Aug 20, 2010 11:45 pm

User's can't reset passwords

Post by kballard »

Using phpmyfaq v 2.6.7 on MS SQL Server.

Can’t reset a users password
a. When a user attempst to reset their password, they're greeted with a blank page.
b. Doing a code trace, the problem is password.php calls a new PMF_mail() object, loaded from:
c. Inc\mail.php
i. Line 260 – I have a database entry for main.AdministrationMail but this errors anyway. Not sure what to do from here
tabbit
Posts: 3
Joined: Fri Aug 20, 2010 2:14 pm

Re: User's can't reset passwords

Post by tabbit »

Hey, I have a similar problem here, but this is related to the fact, that the emails cannot be sent to the recipients because the email address has a double << and >> around the name, like this: <<email@email.com>>
In the file inc\PMF_Mail\Builtin.php I just added the following line at line 66 (commented in the following example) - works for me like a charm:

Code: Select all

        // Prepare the headers for the e-mail
        $mailHeaders = '';
        foreach ($headers as $key => $value) {
            $mailHeaders .= $key.': '.$value."\r\n";
        }

        // Added by TH to remove the << and >> around the recipient email address
	$recipients = str_replace(array('<', '>'),'',$recipients);
        // Finished adding code

        // Send the e-mail
        if (empty($sender)) {
            return mail(
                $recipients,
                $subject,
                $body,
                $mailHeaders
            );
Hope it also helps you...

Best regards,
Tobias
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: User's can't reset passwords

Post by Thorsten »

Hi,

works here for me. Please check if the file is named inc/Mail.php otherwise the autoloader will break.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
kballard
Posts: 35
Joined: Fri Aug 20, 2010 11:45 pm

Re: User's can't reset passwords

Post by kballard »

We tried both solutions, and are still not able to reset passwords. Setup information:
Browser: IE8/Firefox 3.6.x
Database: MS SQL 2008
Windows Server 2008
Mail Service: MS Exchange SMTP 2005
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: User's can't reset passwords

Post by Thorsten »

Hi,

do you have a file named Mail.php in the directory inc/ ?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
kballard
Posts: 35
Joined: Fri Aug 20, 2010 11:45 pm

Re: User's can't reset passwords

Post by kballard »

Yes, we do.

Kevin
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: User's can't reset passwords

Post by Thorsten »

Hi,

okay, I cannot reproduce this on my test systems... do you have any error log information for me?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
kballard
Posts: 35
Joined: Fri Aug 20, 2010 11:45 pm

Re: User's can't reset passwords

Post by kballard »

We've switched over to MySQL, and this is working now. Thanks.
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: User's can't reset passwords

Post by Thorsten »

Hi,

thanks for the feedback... so it seems it's a MS SQL related issue. I'll try to investigate that.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply