Sha256: f03a5cdfb132ce49c01d191ca37575e002dfbdeb4aff22ac77b045886391e675
Contents?: true
Size: 602 Bytes
Versions: 4
Compression:
Stored size: 602 Bytes
Contents
class ProductionLoginPage < LoginPage respond_to :post do with :html do # production user overrides passwords_match? to compare passwords without hashing the # password being tested. Yodel development clients store the password as a hash so # there's no need to hash the password again server side. For html clients logging in, # passwords will be in plain text; the password is hashed here, then control passed up # for login to proceed as normal. params[password_field] = Password.hashed_password(nil, params[password_field]) super() end end end
Version data entries
4 entries across 4 versions & 1 rubygems