6.0.0-beta13
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/11/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#8877] Can not change mail address if confirmation is needed
*
Your Email Address
*
Spam protection
Enter the letters below:
\ /.___..__ .__ .___ >< | [__)| \[__ / \ | | |__/|
Comment
> I have configured Horde so users have exactly one identity and they > need to confirm there mail address if they want to change it. > > The problem is, that after confirmation the old address stays. The > problem is, that if someone confirms an address the address is ALWAYS > added as a new identity. I think this is not wanted for multiple > identities either. > > I have written a patch that works for me, but it would probably > better if someone has a look at it and maybe make it official: > ------------------------------------ > --- a/horde/lib/Horde/Identity.php 2009-04-30 17:34:28.000000000 +0000 > +++ b/horde/lib/Horde/Identity.php 2009-08-02 20:06:56.000000000 +0000 > @@ -467,13 +467,18 @@ > return array(_("Email addresses to confirm not > found."), 'horde.message'); > } else { > $identity = > $this->_prefs->convertFromDriver($confirm[$hash], NLS::getCharset()); > - $verified = array(); > - foreach ($identity as $key => $value) { > - if (!$this->_prefs->isLocked($key)) { > - $verified[$key] = $value; > - } > - } > - $this->add($verified); > + $id = array_search($identity['id'], $this->getAll('id')); > + if ($id !== false) { > + $this->setValue('from_addr', > $identity['from_addr'], $id); > + } else { > + $verified = array(); > + foreach ($identity as $key => $value) { > + if (!$this->_prefs->isLocked($key)) { > + $verified[$key] = $value; > + } > + } > + $this->add($verified); > + } > $this->save(); > unset($confirm[$hash]); > $this->_prefs->setValue('confirm_email', > serialize($confirm), false);
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers