OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Always return the registration service call, ensuring to get the message
Oliver Günthere364f23b06d7
diff --git a/app/services/authentication/omniauth_service.rb b/app/services/authentication/omniauth_service.rbindex e5713df7352..6570b9b084d 100644--- a/app/services/authentication/omniauth_service.rb+++ b/app/services/authentication/omniauth_service.rb@@ -66,19 +66,20 @@ module Authenticationactivation_call = activate_user!# The user should be logged in now- build_service_result activation_call+ tap_service_result activation_callendprivate### After login flow- def build_service_result(call)- return call unless call.success? && user.active?+ def tap_service_result(call)+ if call.success? && user.active?+ user.log_successful_login+ OpenProject::OmniAuth::Authorization.after_login! user, auth_hash, self+ end- user.log_successful_login- OpenProject::OmniAuth::Authorization.after_login! user, auth_hash, self- ServiceResult.new(success: true, result: user)+ callend##