[34427] Do not output empty success flash in omniauth flow

https://community.openproject.com/wp/34427
pull/8673/head
Oliver Günther 4 years ago
parent 94d19b7496
commit de86dcd26a
  1. 2
      app/controllers/concerns/accounts/omniauth_login.rb

@ -89,7 +89,7 @@ module Accounts::OmniauthLogin
.call(user_params)
if call.success?
flash[:notice] = call.message.presence
flash[:notice] = call.message if call.message.present?
login_user_if_active(call.result, just_registered: call.result.just_created?)
elsif call.includes_error?(:base, :failed_to_activate)
redirect_omniauth_register_modal(call.result, auth_hash)

Loading…
Cancel
Save