X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8b240b982b0c0c1f786054f0c472353cb2e85d10..0f727ece17c09c975526d61b04c7ff13965b90e0:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 0c10980ef..9a1d89da6 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -74,6 +74,8 @@ class UserController < ApplicationController if user 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 :-)"