Skip to content

Commit

Permalink
fix activation e-mail action
Browse files Browse the repository at this point in the history
  • Loading branch information
bborn committed Aug 18, 2009
1 parent 7b22662 commit 572b033
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/users_controller.rb
Expand Up @@ -340,7 +340,12 @@ def forgot_username
def resend_activation
return unless request.post?

@user = User.find(params[:id])
if params[:email]
@user = User.find_by_email(params[:email])
else
@user = User.find(params[:id])
end

if @user && !@user.active?
flash[:notice] = :activation_email_resent_message.l
UserNotifier.deliver_signup_notification(@user)
Expand Down

0 comments on commit 572b033

Please sign in to comment.