X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a187c759b7d96be951e1667080c6e24e2288f166..457d66eb5b5b390257e318dd8258228db4de5b92:/app/controllers/user_controller.rb 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 :-)"