packages/mastodon/devise_pam.patch

13 lines
466 B
Diff
Raw Normal View History

2024-10-08 16:57:11 +00:00
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb
index 5c88c4cd5..c333fe443 100644
--- a/config/initializers/devise.rb
+++ b/config/initializers/devise.rb
@@ -1,6 +1,7 @@
# frozen_string_literal: true
require 'devise/strategies/authenticatable'
+require 'devise_pam_authenticatable'
Warden::Manager.after_set_user except: :fetch do |user, warden|
session_id = warden.cookies.signed['_session_id'] || warden.raw_session['auth_id']