We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d297422 + 873bfbd commit 73b89bbCopy full SHA for 73b89bb
lib/casserver/authenticators/sql_encrypted.rb
@@ -40,14 +40,14 @@ def generate_encryption_salt
40
41
def self.setup(options)
42
super(options)
43
- user_model.__send__(:include, EncryptedPassword)
+ user_models.each { |auth_index, model| model.__send__(:include, EncryptedPassword) }
44
end
45
46
def validate(credentials)
47
read_standard_credentials(credentials)
48
raise_if_not_configured
49
50
- user_model = self.class.user_model
+ user_model = self.user_model
51
52
username_column = @options[:username_column] || "username"
53
encrypt_function = @options[:encrypt_function] || 'user.encrypted_password == Digest::SHA256.hexdigest("#{user.encryption_salt}::#{@password}")'
0 commit comments