0
0
Fork 0

Make PAM gem optional, allow configuration over environment (#6415)

This commit is contained in:
Eugen Rochko 2018-02-04 15:05:53 +01:00 committed by GitHub
parent 9b6223f5e2
commit 38e0133e1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 20 deletions

View file

@ -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