Sha256: 1a000b583e08095c01043c0ae93bc011c5b766f17bfd6ee9bec99bc0bb6f42e6
Contents?: true
Size: 888 Bytes
Versions: 1
Compression:
Stored size: 888 Bytes
Contents
class Rails::Authentication module Strategies # To use the password strategies, it is expected that you will provide # an @authenticate@ method on your user class. This should take two parameters # login, and password. It should return nil or the user object. module Basic class Base < Rails::Authentication::Strategy abstract! # Overwrite this method to customize the field def self.password_param :password end # Overwrite this method to customize the field def self.login_param :email end def password_param @password_param ||= Base.password_param end def login_param @login_param ||= Base.login_param end end # Base end # Password end # Strategies end # Rails::Authentication
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
myobie-rails-auth-0.0.0 | lib/rails-auth/strategies/abstract_password.rb |