Make PAM gem optional, allow configuration over environment (#6415)
This commit is contained in:
parent
9b6223f5e2
commit
38e0133e1b
4 changed files with 20 additions and 20 deletions
|
@ -52,7 +52,7 @@ class User < ApplicationRecord
|
|||
devise :registerable, :recoverable, :rememberable, :trackable, :validatable,
|
||||
:confirmable
|
||||
|
||||
devise :pam_authenticatable
|
||||
devise :pam_authenticatable if Devise.pam_authentication
|
||||
devise :omniauthable
|
||||
|
||||
belongs_to :account, inverse_of: :user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue