Sha256: 0101901c08568b5e995d881286208c37c44970a1375e621d13e97fddb060f6c1
Contents?: true
Size: 885 Bytes
Versions: 3
Compression:
Stored size: 885 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 # Basic end # Strategies end # Rails::Authentication
Version data entries
3 entries across 3 versions & 1 rubygems