Class: Merb::Authentication::Strategies::Basic::Base

Inherits:
Merb::Authentication::Strategy
  • Object
show all
Defined in:
lib/merb-auth-more/strategies/abstract_password.rb

Direct Known Subclasses

BasicAuth, Form

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.login_paramObject

Overwrite this method to customize the field



17
18
19
# File 'lib/merb-auth-more/strategies/abstract_password.rb', line 17

def self.
  (Merb::Plugins.config[:"merb-auth"][:login_param] || :login).to_s.to_sym
end

.password_paramObject

Overwrite this method to customize the field



12
13
14
# File 'lib/merb-auth-more/strategies/abstract_password.rb', line 12

def self.password_param
  (Merb::Plugins.config[:"merb-auth"][:password_param] || :password).to_s.to_sym
end

Instance Method Details

#login_paramObject



25
26
27
# File 'lib/merb-auth-more/strategies/abstract_password.rb', line 25

def 
  @login_param ||= Base.
end

#password_paramObject



21
22
23
# File 'lib/merb-auth-more/strategies/abstract_password.rb', line 21

def password_param
  @password_param ||= Base.password_param
end