about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorAlexander <devkral@web.de>2018-03-19 20:09:26 +0100
committerEugen Rochko <eugen@zeonfederated.com>2018-03-19 20:09:26 +0100
commit33ee347c995515946e0a045394fe693875ee1cdf (patch)
tree9e15e38f18be7e43c104d22c0c970123185f1c54 /config/initializers
parent0306e3e9bebe0b0d9ad7e5fe328dd3677717b7e5 (diff)
rename pam email environment variable to something more understandable and default to LOCAL_DOMAIN (better fallback) (#6833)
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/devise.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb
index df45dcd1f..97757d0fb 100644
--- a/config/initializers/devise.rb
+++ b/config/initializers/devise.rb
@@ -342,7 +342,7 @@ Devise.setup do |config|
     config.usernamefield          = nil
     config.emailfield             = 'email'
     config.check_at_sign          = true
-    config.pam_default_suffix     = ENV.fetch('PAM_DEFAULT_SUFFIX') { nil }
+    config.pam_default_suffix     = ENV.fetch('PAM_EMAIL_DOMAIN') { ENV['LOCAL_DOMAIN'] }
     config.pam_default_service    = ENV.fetch('PAM_DEFAULT_SERVICE') { 'rpam' }
     config.pam_controlled_service = ENV.fetch('PAM_CONTROLLED_SERVICE') { nil }
   end