Module: Clearance::User::ClassMethods
- Defined in:
- lib/clearance/user.rb
Instance Method Summary collapse
Instance Method Details
#authenticate(email, password) ⇒ Object
136 137 138 139 |
# File 'lib/clearance/user.rb', line 136 def authenticate(email, password) return nil unless user = find_by_email(email) return user if user.authenticated?(password) end |