Skip to content

Commit 843065c

Browse files
committed
Use only the correct user model for SQLEncrypted.
1 parent 3522c7e commit 843065c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/casserver/authenticators/sql_encrypted.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def generate_encryption_salt
4040

4141
def self.setup(options)
4242
super(options)
43-
user_models.each { |auth_index, model| model.__send__(:include, EncryptedPassword) }
43+
user_model = user_models[options[:auth_index]]
44+
user_model.__send__(:include, EncryptedPassword)
4445
end
4546

4647
def validate(credentials)

0 commit comments

Comments
 (0)