Module: Clearance::App::Models::User::ClassMethods
- Defined in:
- lib/clearance/app/models/user.rb
Instance Method Summary collapse
Instance Method Details
#authenticate(email, password) ⇒ Object
109 110 111 112 |
# File 'lib/clearance/app/models/user.rb', line 109 def authenticate(email, password) return nil unless user = find_by_email(email) return user if user.authenticated?(password) end |