X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e055b8e2f83057508ac8ec5fac76eec96d94a76b..b3d92954d3ecfa01555bd621960e17f29d76d8d9:/app/controllers/user_controller.rb?ds=sidebyside 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