twinslash / redmine_omniauth_google

This plugin is used to authenticate in redmine through Google.
http://www.redmine.org/plugins/redmine_omniauth_google
95 stars 103 forks source link

Fix error "check_if_login_required has not been defined" when click on button Google #55

Open martygraphy opened 1 year ago

martygraphy commented 1 year ago

Hello on version 4.1 & 4.2 of redmine, when clicking on the google connection button, I get this error: FATAL -- : ArgumentError (Before process_action callback :check_if_login_required has not been defined):

The ruby documentation says :

_Application classes and modules are available everywhere, you do not need and should not load anything under app with require. This feature is called autoloading, and you can learn more about it in Autoloading and Reloading Constants._

or the file redmine_oauth_controller.rb file does a require on the account_controller file

The removal of the require function allows the plugin to work properly again

Thanks in advance