This is the tracker for the Core of the Nucleus CMS-project (Nucleus CMS Website)
FS#90 — some problems with member edit
Attached to Project— Nucleus Core
Opened by Wouter Demuynck (karma) - Friday, 19 August 2005, 06:45PM
Opened by Wouter Demuynck (karma) - Friday, 19 August 2005, 06:45PM
| Bug | |
| Admin Area | |
| CLOSED | |
| No-one | |
| All |
| Low | |
| Normal | |
| CVS | |
| 3.22 | |
| Undecided | |
|
|
Info from Andrew Black:
've been working on a revised version of the ExtAuth functionality,
and I noticed a couple of minor bugs. I don't know if they're worth
a ticket, but they should probably be fixed.
The first one is in ADMIN::action_changemembersettings()
The problem is the ordering of the call to
NucleusPlugin::_applyPluginOptions and the changed email check.
Additionally, the changed email check shouldn't logout if the user
doing the edit isn't the one being edited
--- ADMIN.php Mon Aug 15 12:50:12 2005
+++ ADMIN-fix.php Mon Aug 15 20:26:34 2005
@@ -1838,22 +1838,22 @@
$mem->write();
+ // store plugin options
+ $aOptions = requestArray('plugoption');
+ NucleusPlugin::_applyPluginOptions($aOptions);
+
$manager->notify('PostPluginOptionsUpdate',array('context' =>
'member', 'memberid' => $memberid, 'member' => &$mem));
+
// if email changed, generate new password
if ($oldEmail != $mem->getEmail())
{
$mem->sendActivationLink('addresschange', $oldEmail);
// logout member
$mem->newCookieKey();
- $member->logout();
+ if ($member->getID() == $memberid)
+ $member->logout();
$this->action_login(_MSG_ACTIVATION_SENT, 0);
return;
}
-
-
- // store plugin options
- $aOptions = requestArray('plugoption');
- NucleusPlugin::_applyPluginOptions($aOptions);
-
$manager->notify('PostPluginOptionsUpdate',array('context' =>
'member', 'memberid' => $memberid, 'member' => &$mem));
if ( ( $mem->getID() == $member->getID() )
&& ( $newpass || ( $mem->getDisplayName() !=
$member->getDisplayName() ) )
've been working on a revised version of the ExtAuth functionality,
and I noticed a couple of minor bugs. I don't know if they're worth
a ticket, but they should probably be fixed.
The first one is in ADMIN::action_changemembersettings()
The problem is the ordering of the call to
NucleusPlugin::_applyPluginOptions and the changed email check.
Additionally, the changed email check shouldn't logout if the user
doing the edit isn't the one being edited
--- ADMIN.php Mon Aug 15 12:50:12 2005
+++ ADMIN-fix.php Mon Aug 15 20:26:34 2005
@@ -1838,22 +1838,22 @@
$mem->write();
+ // store plugin options
+ $aOptions = requestArray('plugoption');
+ NucleusPlugin::_applyPluginOptions($aOptions);
+
$manager->notify('PostPluginOptionsUpdate',array('context' =>
'member', 'memberid' => $memberid, 'member' => &$mem));
+
// if email changed, generate new password
if ($oldEmail != $mem->getEmail())
{
$mem->sendActivationLink('addresschange', $oldEmail);
// logout member
$mem->newCookieKey();
- $member->logout();
+ if ($member->getID() == $memberid)
+ $member->logout();
$this->action_login(_MSG_ACTIVATION_SENT, 0);
return;
}
-
-
- // store plugin options
- $aOptions = requestArray('plugoption');
- NucleusPlugin::_applyPluginOptions($aOptions);
-
$manager->notify('PostPluginOptionsUpdate',array('context' =>
'member', 'memberid' => $memberid, 'member' => &$mem));
if ( ( $mem->getID() == $member->getID() )
&& ( $newpass || ( $mem->getDisplayName() !=
$member->getDisplayName() ) )
This task depends upon
This task blocks these from closing
Date: Sunday, 21 August 2005, 08:15PM
Reason for closing: Fixed
Additional comments about closing: main branch now also has this fix
Nucleus-3-2 branch has this. Still needs to be merged with main branch
ADMIN.php