Skip to content

Commit 5fbb767

Browse files
committed
#61 cookies
1 parent 39324e4 commit 5fbb767

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/controllers/redmine_oauth_controller.rb

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def oauth_callback
158158

159159
# Try to log in
160160
set_params
161+
set_oauth_login_cookie
161162
try_to_login email, user_info
162163
rescue StandardError => e
163164
Rails.logger.error e.message

lib/redmine_oauth/hooks/controllers/account_controller_hooks.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AccountControllerHooks < Redmine::Hook::Listener
2626
def controller_account_success_authentication_after(context = {})
2727
return unless Setting.plugin_redmine_oauth[:oauth_login] && context[:controller].params[:oauth_autologin]
2828

29-
context[:controller].set_oauth_autologin_cookie context[:user], context[:request]
29+
context[:controller].set_oauth_autologin_cookie
3030
end
3131
end
3232
end

0 commit comments

Comments
 (0)