X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/96f426a2eaa6009496b0f51934a497b3c970db97..79bb66af4c29093b49885c8decd7741d9ddf6fc4:/app/controllers/users_controller.rb?ds=inline diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 4c5827558..288fb2d5c 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -119,6 +119,10 @@ class UsersController < ApplicationController def account @tokens = current_user.oauth_tokens.authorized + append_content_security_policy_directives( + :form_action => %w[accounts.google.com *.facebook.com login.live.com github.com meta.wikimedia.org] + ) + if params[:user] && params[:user][:display_name] && params[:user][:description] if params[:user][:auth_provider].blank? || (params[:user][:auth_provider] == current_user.auth_provider && @@ -344,7 +348,7 @@ class UsersController < ApplicationController flash[:error] = t "users.confirm_resend.failure", :name => params[:display_name] else UserMailer.signup_confirm(user, user.tokens.create).deliver_later - flash[:notice] = t("users.confirm_resend.success", :email => user.email, :sender => Settings.support_email).html_safe + flash[:notice] = t "users.confirm_resend.success_html", :email => user.email, :sender => Settings.support_email end redirect_to :action => "login"