Feature #3566

Allow resending of password by email

Added by Bill Richardson over 8 years ago. Updated over 8 years ago.

Status:ClosedStart date:2009-06-30
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Accounts / authentication
Target version:0.9.0
Resolution:Fixed

Description

I started this idea as a comment on this feature:
http://www.redmine.org/issues/3433#change-9934
and decided to move it to it's own 'new feature', so as not to clutter things up and to make it more accessible to others looking for a similar feature.

I previously said:

A necessary addition to the above feature is "resend activation email". I've written account activation systems from scratch for several customers, and there are always users who call/write and say "I didn't get my activation", usually due to spam blocking. Admins need the ability to resend the activation from the pending user record. Otherwise, we have to delete the user and start over, or worse yet, tell the user they're SOL and need to sign up again with a new email address.

Meanwhile, I discovered that adding a single line of code to the UsersController#edit method gave me the functionality I was looking for.

In the "if @user.save" block, add the following.

Mailer.deliver_account_information(@user, params[:password]) if params[:password] and !was_activated

This will send the account information email whenever the admin changes the account password. It allows an admin to resend an account activation by simply resetting the password. It may not suit everyone's needs, but so far it works great for me.

Bill

Associated revisions

Revision 2813
Added by Jean-Philippe Lang over 8 years ago

Ability to send an email with password when changing a user's password (#3566).

History

#1 Updated by Jean-Philippe Lang over 8 years ago

  • Subject changed from Allow resending of activation email to Allow resending of password by email
  • Status changed from New to Closed
  • Target version set to 0.9.0
  • Resolution set to Fixed

Feature added in r2813.

Also available in: Atom PDF