X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/786f28993a0bcea6f1735ff5a2ee0ef06ba1871c..1a11c4dc191d93b18fcf5aa917448c8cd6d2556b:/app/controllers/confirmations_controller.rb?ds=sidebyside diff --git a/app/controllers/confirmations_controller.rb b/app/controllers/confirmations_controller.rb index bcb4c1617..e54fa4a5d 100644 --- a/app/controllers/confirmations_controller.rb +++ b/app/controllers/confirmations_controller.rb @@ -25,7 +25,7 @@ class ConfirmationsController < ApplicationController render_unknown_user token.user.display_name else user = token.user - user.status = "active" + user.activate user.email_valid = true flash[:notice] = gravatar_status_message(user) if gravatar_enable(user) user.save!