Forums » Development »
Assistance Required for Default Landing Page Implementation in Redmine 6.0.3
Added by KUNTAL MONDAL 3 months ago
We need your assistance in implementing a feature where application users always land on the "My Page" screen by default post login to application.
This was previously implemented in Redmine 2.3.4 and 5.1.1 using below changes, but it is not working in Redmine 6.0.3.
Could you please provide a possible solution for this feature?
go to the path /opt/bitnami/redmine/app/controllers and add below in the account_controller.rb
redirect_to :controller => 'my', :action => 'page’
insight def successful_authentication(user)
Replies (1)
RE: Assistance Required for Default Landing Page Implementation in Redmine 6.0.3
-
Added by KUNTAL MONDAL about 22 hours ago
Hello guys,
Finally, I got solution.
Below will be the modification in the account_controller.rb
find the method def successful_authentication(user) and adjust bold part below
def successful_authentication(user) logger.info "Successful authentication for '#{user.login}' from #{request.remote_ip} at #{Time.now.utc}" # Valid user self.logged_user = user # generate a key and set cookie if autologin if params[:autologin] && Setting.autologin? set_autologin_cookie(user) end call_hook(:controller_account_success_authentication_after, {:user => user}) #redirect_back_or_default my_page_path redirect_to my_page_path end