]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/users_controller.rb
Allow setting HTTP ACCEPT header for notes API
[rails.git] / app / controllers / users_controller.rb
index 534f988104c85beb24a20a1b11a5eef466191b93..933cec53de9f2a78344363bf40b3f98870d1e30d 100644 (file)
@@ -83,7 +83,7 @@ class UsersController < ApplicationController
         end
 
         if current_user.save
-          flash[:piwik_goal] = PIWIK["goals"]["signup"] if defined?(PIWIK)
+          flash[:matomo_goal] = Settings.matomo["goals"]["signup"] if defined?(Settings.matomo)
 
           referer = welcome_path
 
@@ -271,7 +271,7 @@ class UsersController < ApplicationController
       session[:new_user].auth_provider = provider
       session[:new_user].auth_uid = uid
 
-      session[:new_user].status = "active" if email_verified && email == session[:new_user].email
+      session[:new_user].activate if email_verified && email == session[:new_user].email
 
       redirect_to :action => "terms"
     else