Sha256: a908fa3bd08d958fb572247c21618dd231c79108bb6f6c8f901eaefc744c502a
Contents?: true
Size: 589 Bytes
Versions: 22
Compression:
Stored size: 589 Bytes
Contents
require 'casserver/authenticators/sql' require 'digest/md5' # Essentially the same as the standard SQL authenticator, but this version # assumes that your password is stored as an MD5 hash. # # This was contributed by malcomm for Drupal authentication. To work with # Drupal, you should use 'name' for the :username_column config option, and # 'pass' for the :password_column. class CASServer::Authenticators::SQLMd5 < CASServer::Authenticators::SQL protected def read_standard_credentials(credentials) super @password = Digest::MD5.hexdigest(@password) end end
Version data entries
22 entries across 22 versions & 6 rubygems