Method: Authlogic::Session::Password::InstanceMethods#credentials
- Defined in:
- lib/authlogic/session/password.rb
#credentials ⇒ Object
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[login_field.to_sym] = send(login_field) details[password_field.to_sym] = "<protected>" details else super end end |