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
Deprecate with replacement
Oliver Günther5d8f7e9f4b71
diff --git a/lib/open_project/omni_auth/authorization.rb b/lib/open_project/omni_auth/authorization.rbindex 97d493daec5..b5d81b93183 100644--- a/lib/open_project/omni_auth/authorization.rb+++ b/lib/open_project/omni_auth/authorization.rb@@ -107,9 +107,13 @@ module OpenProject# including user info and credentials.# @yieldparam context The context from which the callback is called, e.g. a Controller.def self.after_login(&)+ ActiveSupport::Deprecation.warn(+ "after_login does not return the actually logged in user and has been deprecated. " \+ "Please use OpenProject::Hook omniauth_user_authorized or user_logged_in hooks instead",+ caller+ )add_after_login_callback AfterLoginBlockCallback.new(&)end- OpenProject::Deprecation.deprecate_method(self, :after_login)### Registers a new callback to decide whether or not a user is to be authorized.