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.
192 193 194 195 |
# File 'lib/clearance/user.rb', line 192 def authenticate(email, password) return nil unless user = find_by_email(email) return user if user.authenticated?(password) end |