Module: Clearance::User::ClassMethods
- Defined in:
- lib/clearance/user.rb
Instance Method Summary collapse
-
#authenticate(email, password) ⇒ User?
Authenticate with email and password.
Instance Method Details
#authenticate(email, password) ⇒ User?
Authenticate with email and password.
199 200 201 202 |
# File 'lib/clearance/user.rb', line 199 def authenticate(email, password) return nil unless user = find_by_email(email) return user if user.authenticated?(password) end |