Sha256: d1e228c7112b7c5ed0a991c71943b23b1aff870760ccbb55ba194c4a8688da54
Contents?: true
Size: 588 Bytes
Versions: 34
Compression:
Stored size: 588 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
34 entries across 34 versions & 7 rubygems