Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'redmine'
require 'redmine_openid_connect/application_controller_patch'
require 'redmine_openid_connect/account_controller_patch'
require 'redmine_openid_connect/users_controller_patch'
require 'redmine_openid_connect/hooks'

Redmine::Plugin.register :redmine_openid_connect do
Expand All @@ -17,4 +18,5 @@
Rails.configuration.to_prepare do
ApplicationController.prepend(RedmineOpenidConnect::ApplicationControllerPatch)
AccountController.prepend(RedmineOpenidConnect::AccountControllerPatch)
UsersController.prepend(RedmineOpenidConnect::UsersControllerPatch)
end
9 changes: 9 additions & 0 deletions lib/redmine_openid_connect/users_controller_patch.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module RedmineOpenidConnect
module UsersControllerPatch

def destroy
OicSession.where("user_id = ? ", @user.id).delete_all
super
end
end
end