Users who do not have access to change their password can still request a new password and they get a one time login email telling them to change their password which they then cannot do.

I don't want to stop the one time login email as it can still be useful for people who have forgotten their passwords, rather id like a method where by i can send a different email out to users who are not able to change their password explaining why they cant and what to do about it.

Anyone got any ideas?

Comments

deekayen’s picture

The module could implement hook_mail_alter to change or swap out the default change password email.

Bastlynn’s picture

Status: Active » Closed (fixed)

Since it looks like the original poster hasn't gotten back to us, I'm closing this ticket. If you *do* need this issue addressed further - please open another ticket. Keep in mind, we are generally trying to take any changes on the 7.x branch, not the 6.x branch.

(As a note: sending an email sounds be fairly simple as a module using hook_mail_alter but is a bit out of the purpose and scope of something like user_readonly. When you muck around with critical pieces of the under interface like the password fields, you're going to need to go that extra mile to make sure you don't shoot yourself in the foot. User_readonly, like a number of other modules on d.o gives you tons of ways to shoot yourself, so please handle the changes you make with care.)