PDA

View Full Version : V2.0.01 Editor Change Password email notification


Mark Brookes
12-15-2006, 12:29 PM
Trial Build -->
eSyndiCat ver 2.0.01 dated 28Nov2006 in downloads area.

When an Editor logs into their account and changes their password they should be sent a notification email.

In ver 2.0 this was done by adding a mod to lines 1011 & 1012 to Dir.php
$aEditor=$this->getEditorById($aId);
$this->mMailer->sendPasswordChange($aEditor, $aPassword);
== but this modification no longer seems to work in ver 2.0.01 ==

However in ver2.0.01 The email is not sent to the Editor.

as Administrastor I get an error report email from my hosting company:-
A message that you sent contained no recipient addresses, and therefore no
delivery could be attempted.

------ This is a copy of your message, including all the headers. ------

To:
Subject: Password change request at FWS - REF - No Mods + no DataImported - EVERYTHING is pure eSC program/db/usage
From: REF-eSC-programme@finespeeches.com
Reply-To: REF-eSC-programme@finespeeches.com
Message-Id: <E1GvBwt-0005w9-5E@server133.advancednetworkhosting.com> (E1GvBwt-0005w9-5E@server133.advancednetworkhosting.com)
Date: Fri, 15 Dec 2006 06:13:59 -0600


Dear ,

You requested a password change in FWS - REF - No Mods + no DataImported - EVERYTHING is pure eSC program/db/usage. Now you should use the following credentials to log in as editor:

username:
password: newref

______________________________
Thank you,
FWS - REF - No Mods + no DataImported - EVERYTHING is pure eSC program/db/usage Administration Team
http://www.finespeeches.com (http://www.finespeeches.com/)
REF-eSC-programme@finespeeches.com


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.19/587 - Release Date: 14/12/2006

It seems that the Editor's Username & email address are not being handled correctly.

I have tested this at http://www.finespeeches.com/wedding-resources-REF/
which pure eSC programs with NO mods

you can log in as Editor ref/ref if you like

Regards
Mark


PS the forgot password procedure & email works ok.

Dave Baker
12-15-2006, 05:58 PM
Hello Mark!
It becomes ridiculous, but our bug with variable in editor-accoutn.php still proceeds. It's the reason of problems with messages because are not passed data about the user including his email.
***Open editor-account.php and find code***

if (!$error)
{
$gDirDb->changePassword($editor['id'], $_POST['new']);
$msg = "<li>{$gDirLang['password_changed']}</li>";
}

***Replace with the following code***

if (!$error)
{
$gDirDb->changePassword($gDirEditor['id'], $_POST['new']);
$msg = "<li>{$gDirLang['password_changed']}</li>";
}

***Save file***

Mark Brookes
12-16-2006, 10:31 AM
Hi Dave,

Thanks, as usual, for your help.

I' sorry to have bothered you with something which you gave me the answer to in http://www.esyndicat.com/forum/showthread.php?p=52460, but I got confused between the two neseccary corrections - in editor-account.php and Dir.php. Only the one in Dir.php had been incorporated into Ver2.0.01.

Anyway to cut a long story short, while I was trying to undestand how a change to editor-account.php (which replated to password changing) could solve the email problem - I finally realised that it was both changes together that got the email working.

;) it took me hours to work this out. :)


Regards
Mark