Skip to content

Commit

Permalink
#61 cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Nov 23, 2024
1 parent 39324e4 commit 5fbb767
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/redmine_oauth_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def oauth_callback

# Try to log in
set_params
set_oauth_login_cookie
try_to_login email, user_info
rescue StandardError => e
Rails.logger.error e.message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AccountControllerHooks < Redmine::Hook::Listener
def controller_account_success_authentication_after(context = {})
return unless Setting.plugin_redmine_oauth[:oauth_login] && context[:controller].params[:oauth_autologin]

context[:controller].set_oauth_autologin_cookie context[:user], context[:request]
context[:controller].set_oauth_autologin_cookie
end
end
end
Expand Down

0 comments on commit 5fbb767

Please sign in to comment.