From 457d66eb5b5b390257e318dd8258228db4de5b92 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 9 Jun 2007 23:08:18 +0000 Subject: [PATCH 1/1] Mark user as active when issuing a new password - this allows users who forgot to activate their account to do so by going through the lost password procedure, which effectively revalidates their email address. --- app/controllers/user_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index f12cb1051..9a1d89da6 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -75,6 +75,7 @@ class UserController < ApplicationController pass = User.make_token(8) user.pass_crypt = pass user.pass_crypt_confirmation = pass + user.active = true user.save Notifier::deliver_reset_password(user, pass) flash[:notice] = "Your password has been changed and is on its way to your mailbox :-)" -- 2.43.2