Skip to content

Commit 9bb8374

Browse files
committed
Fetch the correct user model in SQLRestAuth.setup.
1 parent cd56752 commit 9bb8374

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/casserver/authenticators/sql_rest_auth.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def validate(credentials)
5252

5353
def self.setup(options)
5454
super(options)
55+
user_model = user_models[options[:auth_index]]
5556
user_model.__send__(:include, EncryptedPassword)
5657
end
5758

0 commit comments

Comments
 (0)