X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e055b8e2f83057508ac8ec5fac76eec96d94a76b..6fb857020092c909043c4521b91a040f3bb16937:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index a354fb0ef..b9cca0cf6 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -24,7 +24,7 @@ class UserController < ApplicationController if request.xhr? render :update do |page| - page.replace_html "contributorTerms", :partial => "terms" + page.replace_html "contributorTerms", :partial => "terms", :locals => { :has_decline => params[:has_decline] } end else @title = t 'user.terms.title' @@ -220,6 +220,8 @@ class UserController < ApplicationController else flash.now[:error] = t 'user.login.auth failure' end + else + flash.now[:notice] = t 'user.login.notice' end end