Hello

Sometimes its pretty useful to track a user has changed its email.

A watchdog message would be perfect.

Comments

jaydub’s picture

Another way you can track changes is to utilize the option to set a BCC email address. That way you can simply get a copy of the email change messages sent to users.

I might look into adding the logging as well but with the BCC you can get tracking today...

michtoen’s picture

Hello

Yes, i had the same idea.
But for our website, we have a somewhat big number of different moderators and admin (open source game).
It would there alot easier to have a log for them, because we use OG to give a set of admin/mod roles to
selected project members (which have a alot different emails).

BTW, grats to this module. Its a must have for a social website - without it, any bot with one valid email can create an endless number of fake accounts.

You should serious consider to add this module to core - at last the functionality to D7!

jaydub’s picture

I hear you. adding logging ins't so much work so I'll go ahead and do it anyways. I'm relocating from China to the US in a few days though so it won't be possible for a couple weeks.

And regarding core, this module was basically done in response to and based on: #85494: Use email verification when changing user email addresses

Like a lot of things in Drupal, the core maintainers are perfectly happy letting lots of more or less needed functionality remain as contrib modules. It would be nice but Drupal 7 already has a lot of new stuff going in to worry about :)

michtoen’s picture

Ah, i noticed that alot things are in modules which should be in the core
(at last from my point of view).

Just, this email verifiying is a funny thing: 99% of all major CMS don't do it.
Joomla, Zikula (Postnuke),...
Thats, in my opinion, because they are all CMS aka content managment systems...
There is nowhere the word "user". For reasons, the original idea of all that systems
was more or less to work as a document or news system, isn't it.

System which depend on user generated content, mainly standalone forums,
doing it since ages.

I wondered also, this module was never listed in the drupal social network group.
I had explicit to search for it. I would not install a web 2.0 without it.
Well, i will post our site there when its done, then it will be there.

Anyway, i need this module because we are a open source mmorpg and we want
handling the game accounts over the website. Also, we have shop. So, its
a no go without email veryfing for us.

Thanks for your response and work! No need to hurry, its just nice to have that feature
and good to know it will come.

jaydub’s picture

You know I hadn't even realized it but actually I already did have a watchdog() call in the module when an email change is confirmed.

The only thing I could change is to change the $type on the watchdog() call from 'user' to 'email_confirm' but I'd say that's minor.

Take a look at what's currently showing up in the watchdog and let me know if you think it's acceptable for you.

Taxoman’s picture

Ref. my forum post: "Email address change history (logging and querying)"
http://drupal.org/node/526028

"I am looking for a way to let administrators (roles-based, preferably) keep track of the email addresses that has been used with each account on a site.

I dont think Drupal logs email address changes in watchdog or elsewhere.
Maybe the email confirmation module in practise provides such watchdog entries that could later be queried. Although I would not prefer having historic information that I want to keep, stored in watchdog.

I still also need a way for the administrators to easily display a list of the email change history of a particular user. Something like
"Date of change, old email, new email",
each change listed on its own line in descending order, for example. "

jaydub’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Status: Active » Fixed

I've added a hook to Email Confirm to allow any module to act on email change requests as well as the successful confirmation of an email change request. This means that any sort of tracking that one would want to do is now possible but I'm leaving the implementation of that tracking open to anyone's particular needs by supplying the hook.

The hook follows this model:

hook_email_confirm($op, $uid, $old_email, $new_email)

Where $op is either 'email change' or 'email confirmation' corresponding to the request to change email address and the confirmation of the email change via clicking the confirmation link in the email sent out as a result of the request to change. The other parameters are self-explanatory.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Taxoman’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Closed (fixed) » Postponed

Great. So far so good.
Perhaps even already now (6.x) this module can be set to add such messages to watchdog by default?

Next step:
In order to enable this function for use without having to do programming or alter the theme which always adds to the manual labor when upgrading sites; I think some GUI function should be provided (a tick mark in the admin section for example).

jaydub’s picture

Status: Postponed » Closed (fixed)

Please open a new issue if you wish to highlight a feature request. This issue is closed.