Method: Authlogic::Session::Password::InstanceMethods#credentials

Defined in:
lib/authlogic/session/password.rb

#credentialsObject

Returns the login_field / password_field credentials combination in hash form.



144
145
146
147
148
149
150
151
152
153
# File 'lib/authlogic/session/password.rb', line 144

def credentials
  if authenticating_with_password?
    details = {}
    details[.to_sym] = send()
    details[password_field.to_sym] = "<protected>"
    details
  else
    super
  end
end